Git/hacks: Difference between revisions

Add section about comparing to upstream
No edit summary
Line 97: Line 97:
* git log oldbranch ^newbranch --no-merges
* git log oldbranch ^newbranch --no-merges
* git log master..feature (everything on the feature branch that is not in master)
* git log master..feature (everything on the feature branch that is not in master)
* git log HEAD..freephile/master (everything in the remote 'freephile/master' that's not in HEAD locally)
* git log origin/master..HEAD (everything in the local branch that you would push)
* git log origin/master..HEAD (everything in the local branch that you would push)
* git log --left-right master...experiment (triple dot shows everything since the common ancestor) <ref>https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#Commit-Ranges</ref>
* git log --left-right master...experiment (triple dot shows everything since the common ancestor) <ref>https://git-scm.com/book/en/v2/Git-Tools-Revision-Selection#Commit-Ranges</ref>