Re: [git-users] What is the best way to visualize branch history line?

2014-05-14 Thread Charles Manning
gitk has some useful options, so make sure you read the man pages.

Of most interest is

gitk --all

That is really handy for seeing the branches relative to eachother.



On Wed, May 14, 2014 at 9:23 AM, Leonardo Petry leonardo.petry...@gmail.com
 wrote:

 I tried gitk today and got blown away that I completely missed this. It
 helps me understand the current state of my local branch in a way I
 couldn't before. Many Thanks.


 On Monday, May 12, 2014 10:57:06 PM UTC-4, charlesmanning wrote:

 I like gitk.


 On Tue, May 13, 2014 at 2:20 PM, Leonardo Petry leonardo...@gmail.comwrote:

 What would be the best command to view a branch history? Right now I use 
 *git
 show-branch* but I get a huge list of commits and branches. Ideally I
 would like to see a couple of previous commits and be able to see the which
 files where added to each commit.


 On another topic I would appreciate any tips on when I should prefer
 merge over rebase.

 --
 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+...@googlegroups.com.

 For more options, visit https://groups.google.com/d/optout.


  --
 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.


-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-13 Thread Dale R. Worley
 From: Leonardo Petry leonardo.petry...@gmail.com
 
 What would be the best command to view a branch history?

git log --graph helps my intuition.

Dale

-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-13 Thread Konstantin Khomoutov
On Tue, 13 May 2014 09:47:40 -0400
wor...@alum.mit.edu (Dale R. Worley) wrote:

  What would be the best command to view a branch history?
 
 git log --graph helps my intuition.

Agreed.  I have `git overview` alias set to

  git log --graph --all --decorate --oneline

to get an overview of the current state.

Not what the OP wants (he needs --diffstat etc) but the general idea is
to use `git log --graph`.

-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-13 Thread Felipe Contreras
On Tue, May 13, 2014 at 9:19 AM, Konstantin Khomoutov
flatw...@users.sourceforge.net wrote:
 On Tue, 13 May 2014 09:47:40 -0400
 wor...@alum.mit.edu (Dale R. Worley) wrote:

  What would be the best command to view a branch history?

 git log --graph helps my intuition.

 Agreed.  I have `git overview` alias set to

   git log --graph --all --decorate --oneline

 to get an overview of the current state.

 Not what the OP wants (he needs --diffstat etc) but the general idea is
 to use `git log --graph`.

If the user wants to see everything, yes, but to me it looked he was
interested in the sequence of events, so --graph is not the best for
that.

-- 
Felipe Contreras

-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-13 Thread Leonardo Petry
I tried gitk today and got blown away that I completely missed this. It 
helps me understand the current state of my local branch in a way I 
couldn't before. Many Thanks.

On Monday, May 12, 2014 10:57:06 PM UTC-4, charlesmanning wrote:

 I like gitk.


 On Tue, May 13, 2014 at 2:20 PM, Leonardo Petry 
 leonardo...@gmail.comjavascript:
  wrote:

 What would be the best command to view a branch history? Right now I use 
 *git 
 show-branch* but I get a huge list of commits and branches. Ideally I 
 would like to see a couple of previous commits and be able to see the which 
 files where added to each commit.


 On another topic I would appreciate any tips on when I should prefer 
 merge over rebase.

 -- 
 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+...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/d/optout.




-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-13 Thread Thomas Ferris Nicolaisen
On Tuesday, May 13, 2014 11:27:18 PM UTC+2, Leonardo Petry wrote:

 Would git log print something like this:

 http://denisonluz.com/blog/wp-content/uploads/terminal-pimped-lg.jpg


Yeah, that looks like this one:

On Tuesday, May 13, 2014 10:19:44 AM UTC-4, Konstantin Khomoutov wrote:

   git log --graph --all --decorate --oneline 



-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-12 Thread Charles Manning
I like gitk.


On Tue, May 13, 2014 at 2:20 PM, Leonardo Petry leonardo.petry...@gmail.com
 wrote:

 What would be the best command to view a branch history? Right now I use *git
 show-branch* but I get a huge list of commits and branches. Ideally I
 would like to see a couple of previous commits and be able to see the which
 files where added to each commit.


 On another topic I would appreciate any tips on when I should prefer merge
 over rebase.

 --
 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.


-- 
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.


Re: [git-users] What is the best way to visualize branch history line?

2014-05-12 Thread Felipe Contreras
On Mon, May 12, 2014 at 9:20 PM, Leonardo Petry
leonardo.petry...@gmail.com wrote:
 What would be the best command to view a branch history? Right now I use git
 show-branch but I get a huge list of commits and branches. Ideally I would
 like to see a couple of previous commits and be able to see the which files
 where added to each commit.

Probably `git log --decorate --oneline --diffstat`, or something like
that. There's tons of options to `git log`.

-- 
Felipe Contreras

-- 
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.