2011-10-26 110 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 
相关问题