- 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