From Fedora Project Wiki

Revision as of 20:00, 6 October 2008 by Toshio (talk | contribs) (half of a recipe for pulling a remote branch)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Warning.png
Quick Reference Only
This is not intended to be an exhaustive list of git operations. See the documentation for that.

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>