Skip to content

Instantly share code, notes, and snippets.

@jasoares
Created March 27, 2012 03:17
Show Gist options
  • Select an option

  • Save jasoares/2212161 to your computer and use it in GitHub Desktop.

Select an option

Save jasoares/2212161 to your computer and use it in GitHub Desktop.
git general trick various objectives
git push [remotename] [localbranch]:[remotebranch]
git pull [remotename] [localbranch]:[remotebranch]
git push [remotename] nil:[remotebranch] => git push [remotename] :[remotebranch] # deletes a remote branch
git pull [remotename] [unexistentlocalbranch]:[remotebranch] # pulls a new remote branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment