2011-10-26 96 views

回答

2
$ git add folder/anotherFolder/file.php 
$ git commit [-m'your message here'] 
$ git push 

或者,如果沒有工作副本改變了你要提交,只需要:

$ git commit -am'your message here' 
$ git push 
+0

它們表示命令行的一部分是可選的。也就是說,你可以省略'-m'message''位,git會啓動一個編輯器,這樣你就可以在那裏輸入你的信息。 – Useless

0
git init 
git add folder/anotherFolder/file.php 
git commit -am "your commit message" 
git remote add origin <the_url_remote_repository> 
git push -u origin master 

哪裏the_url_remote_repository是類似的東西(例如對於github上):

[email protected]:yourprofile/thereponame.git 
相關問題