Created
October 22, 2011 02:45
-
-
Save taylor/1305486 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##### | |
| # | |
| # $ git checkout --track -b <local name> origin/<remote name> | |
| # Note: this creates a local branch <local name> based on the upstream branch and switches your working copy to that branch. | |
| # | |
| # Push a local branch remotely with this | |
| # | |
| # git push some_repo local_branch:refs/heads/new_branch | |
| # example | |
| # git push origin master:refs/heads/staging will create the branch staging in the origin repository by copying the local master branch | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green | |
| [color "diff"] | |
| meta = yellow bold | |
| frag = magenta bold | |
| old = red bold | |
| new = green bold | |
| [color "status"] | |
| added = yellow | |
| changed = green | |
| untracked = cyan | |
| #[color] | |
| # ui = true | |
| #[core] | |
| # whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
| [alias] | |
| st = status | |
| ci = commit | |
| br = branch | |
| co = checkout | |
| df = diff | |
| lg = log -p | |
| [user] | |
| email = taylor@codecafe.com | |
| name = Taylor Carpenter | |
| [branch] | |
| autosetupmerge = true | |
| [github] | |
| user = taylor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment