Thank you for the explanation J66st.

On Friday, January 23, 2015 at 8:00:00 AM UTC-7, Wolfram Volpi wrote:
>
> Is there a way git log --graph could indicate the current branch?
> This would be a nice feature.
> Currently I am using git status to see which branch HEAD is on.
>
> In this example, I use git status to see if HEAD is on topic_branch or 
> master:
>
> >git log --oneline --graph --decorate --all
> * 1e4f996 (HEAD, origin/topic_branch, topic_branch, master) 1
> * 7e2662b add file ff.txt
> * 9ef0751 (origin/master, origin/HEAD) initial commit
>
> >git status
> On branch master
> Your branch is ahead of 'origin/master' by 2 commits.
>   (use "git push" to publish your local commits)
>
> nothing to commit, working directory clean
>
> >git checkout topic_branch
> Switched to branch 'topic_branch'
>
> >git log --oneline --graph --decorate --all
> * 1e4f996 (HEAD, origin/topic_branch, topic_branch, master) 1
> * 7e2662b add file ff.txt
> * 9ef0751 (origin/master, origin/HEAD) initial commit
>
> >git status
> On branch topic_branch
> nothing to commit, working directory clean
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to