我从github克隆了我的存储库,然后通过添加更新了composer
composer install
所以我相信composer.json页面已经更新了新的代码行。我想把它推回到github在线存储库。
我该怎么做,我试过做
git commit
它给我以下信息
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
modified: .env.example
modified: composer.json
modified: config/app.php
因此,对composer.json、.env、config/app.php等文件的更改不会影响在线存储库??
对此有任何见解,请
感谢
您需要做:
git add .
之前:
git commit
git add .
将暂存所有文件以进行提交。如果您希望暂存特定文件,则可以执行git add file_name
参考编号:https://git-scm.com/docs/git-add
试着按照这个操作。
从您的git存储库。
-
git add .
-
git commit -m "Comment Here"
-
git push origin master