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 
  1. is there better way?
  2. also, head point 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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -