2015年4月14日 星期二

Git push Command

git push

  Works like git push <remote>, where <remote> is the current branch’s remote (or origin, if no remote is configured for the current branch).

git push origin
  git push到變數"remote.origin.merge"所指定的地方.

got push origin :

   push到遠端的origin

git push origin master

   ???

git push origin HEAD

   A handy way to push the current branch to the same name on the remote


git push origin HEAD:master   

    Push the current branch to the remote ref matching master in the origin repository. This form is convenient to push the current branch without thinking about its local name.

git push origin master:refs/heads/experimental

   Create the branch experimental in the origin repository by copying the current masterbranch. 

沒有留言:

張貼留言