【发布时间】:2021-06-30 09:25:12
【问题描述】:
git add .
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in package.json.
PS C:\Users\HP\OneDrive\Desktop\gg> git push origin main
Everything up-to-date
PS C:\Users\HP\OneDrive\Desktop\gg> git pull origin main
From https://github.com/Osomhe1/sass
* branch main -> FETCH_HEAD
Already up to date.
但是 package.json 没有显示。
【问题讨论】:
-
您需要
git commit然后git push将您的更改推送到远程服务器(Github) -
来自 Github 文档:Adding a file to a repository using the command line
-
发布了您的问题的工作流程,如果它解决了您的目的,请点赞,以便将来对其他人有所帮助:)
标签: git github package.json