on one branch,pull and graph another branch

https://superuser.com/questions/163033/pull-for-another-git-branch-without-switching
https://stackoverflow.com/questions/31368434/how-can-i-print-the-log-for-a-branch-other-than-the-current-one

say, we are on the condor branch and want to pull master branch, we could do like:

git fetch origin master:master

and we could graph the master branch as well:

git log master --graph
发布了755 篇原创文章 · 获赞 195 · 访问量 104万+

猜你喜欢

转载自blog.csdn.net/seamanj/article/details/104060636