Difference between revisions of "Git/push"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
< Git
Jump to navigation Jump to search
(Created page with "'''Action''': updates remote refs using local refs, while sending objects necessary to complete the given refs ==Links== ===Reference=== * [http://kernel.org/pub/software/scm/...")
 
(examples)
Line 1: Line 1:
 
'''Action''': updates remote refs using local refs, while sending objects necessary to complete the given refs
 
'''Action''': updates remote refs using local refs, while sending objects necessary to complete the given refs
 +
==Examples==
 +
* '''git push''' {{arg|remote server}} {{arg|branch to push}}
 +
* '''git push''' -u -v {{arg|remote server}} {{arg|branch to push}}
 +
** This version is more verbose; not actually sure what -u does.
 +
Remote server is any server-alias you have set up; "origin" seems to be a default. Branch is typically "master".
 
==Links==
 
==Links==
 
===Reference===
 
===Reference===
 
* [http://kernel.org/pub/software/scm/git/docs/git-push.html manpage @ kernel.org]
 
* [http://kernel.org/pub/software/scm/git/docs/git-push.html manpage @ kernel.org]

Revision as of 02:17, 12 December 2014

Action: updates remote refs using local refs, while sending objects necessary to complete the given refs

Examples

  • git push <remote server> <branch to push>
  • git push -u -v <remote server> <branch to push>
    • This version is more verbose; not actually sure what -u does.

Remote server is any server-alias you have set up; "origin" seems to be a default. Branch is typically "master".

Links

Reference