Tuesday, July 23, 2013

git stuff

Automatically rebase on your new branches when you pull...
  • git config --global branch.autosetuprebase always

To set rebase when pulling on an existing branch
  • git config branch.master.rebase true
To check what would happen on a branch when you pull.
  • git remote show origin
Check out a remote branch
  • git checkout -b <branch name> origin/<branch name>
Push to a remote branch
  • git push origin <branch name>
Cherry-pick
  • git cherry-pick <commit id>

No comments:

Post a Comment