2
我克隆了我的回購並做了一些更改。我試圖把它推到github:Github提交遠程更改
git add *
git commit -m "changes"
git push origin master
但它沒有找到我的更改。我能做什麼?
我克隆了我的回購並做了一些更改。我試圖把它推到github:Github提交遠程更改
git add *
git commit -m "changes"
git push origin master
但它沒有找到我的更改。我能做什麼?
需要注意的是:
git add .
是通常的形式在當前目錄和子目錄添加的一切。 git add -u .
將允許您記錄文件的刪除(取決於你的shell,「*
」可能並不如預期。一個點「.
」將工作)。git add -A .
是shortcut to do both。我試過了。我對我的源代碼做了很多修改,但是當我執行git push origin master時,git說每一個最新的 – ubuseral 2013-02-27 22:55:22
你是什麼意思,你找不到你的改變?你找不到你的提交?本地或遠程?你嘗試過'git status'或'git log'嗎? – BLaZuRE 2013-02-26 07:41:48
你可以參考這個:http://media.pragprog.com/titles/tsgit/chap-005-extract.html – Sky 2013-02-26 07:43:42