git - What does HEAD point to? -
i want compare local master branch remote origin/master branch. know how git pull --rebase; git diff origin/master local master branch detect line-by-line differences in code. but, want compare commit histories, i.e., show git log , git log origin/master side-by-side. tried git show-branch -a got:
* [master] change content background-color blue ! [origin/head] add favicon ! [origin/master] add favicon --- * [master] change content background-color blue *++ [origin/head] add favicon - is there better way?
- also,
headpoint to, checked-out commit?
you do:
git log master..origin/master to list commits "between" master , origin/master.
head points checked out commit.
both dot-dot syntax , head documented @ gitrevisions(7).
Comments
Post a Comment