git pull git push origin master:refs/heads/new_branch git co -b new_branch --track origin/new_branch
git push origin localbranch:remotebranch
git push origin :remote_branch_name
git push
git log branch1 ^branch2
git rebase -i SHA_OF_FIRST_PRIOR_UNRELATED_COMMIT replace 'pick' with 's' for all except the top (earliest) commit delete all commit messages and replace with just 1 message
git log -S"text I'm looking for" /path/to/file.name
for i in git reflog --pretty=format:%H stash
; do git grep “text I’m looking for” $i; done
git log -S”text I’m looking for”
git diff SHA_OF_FIRST_PRIOR_UNRELATED_COMMIT > ~/patchfile git co SHA_OF_FIRST_PRIOR_UNRELATED_COMMIT git co new_branch_name patch -p1 < ~/patchfile
https://help.github.com/articles/fork-a-repo
git co -b upstream upstream/master git cherry-pick SHA git push origin upstream
- create pull request from that branch