From Fedora Project Wiki
(Tribal knowledge is bad) |
(half of a recipe for pulling a remote branch) |
||
Line 9: | Line 9: | ||
=== Push and create a new remote branch from an existing local branch of the same name === | === Push and create a new remote branch from an existing local branch of the same name === | ||
<code>git push origin <branch></code> | <code>git push origin <branch></code> | ||
+ | |||
+ | === Switch to a branch that was pushed remotely === | ||
+ | Guess the name of the remote branch then run: | ||
+ | |||
+ | <code>git checkout -b <branch> origin/<branch></code> | ||
== Maintainer Operations == | == Maintainer Operations == |
Revision as of 20:00, 6 October 2008
Contents
Basic Operations
Developer Operations
Create a new local branch
git checkout -b <branch>
Push and create a new remote branch from an existing local branch of the same name
git push origin <branch>
Switch to a branch that was pushed remotely
Guess the name of the remote branch then run:
git checkout -b <branch> origin/<branch>
Maintainer Operations
Apply mailed git patch
git am <file>