tags:

views:

1319

answers:

3

The article has the following inputs and outputs

git co master
git merge [your_branch]
git push

upstream    A-B-C-D-E            A-B-C-D-E-F-G
                 \        ---->               \
your branch       C-D-E                        G

I am interested how you get the tree like-view of commits in your terminal without using Gitk or Gitx in OS/X.

How can you get the tree-like view of commits in terminal?

A: 

I suspect he drew that himself for the article.

Pod
+12  A: 
VonC
Your command gives me: "1 fatal: unrecognized argument: -oneline"
Masi
Your second command gives me http://files.getdropbox.com/u/175564/gitTree.png
Masi
-oneline? did you type one '-' or two? '--oneline'
VonC
I just tested it on my repo. It works but I am on Windows with MSysGit1.6.3.
VonC
files.getdropbox.com is blocked here at work :( I will see your picture in about one hour, time to get home.
VonC
@Vonc: I now typed two for the first command. I get a similar view as in the picture for the second command.
Masi
There is also 'tig', text-mode interface for git (using ncurses), which had graphical history view in terminal before there was '--graph' option to git-log.
Jakub Narębski
Completely off-topic question: what’s the font called you use in your terminal? :)
Bombe
@Bombe: the closest I can find is http://new.myfonts.com/fonts/linotype/russell-oblique/std/ (note: "I" do not use any special font in my terminal: the picture you see comes from the git-ready web site)
VonC
Thank you for mentioning "g" in Tig!
Masi
@VonC: Please, see my additions to your answer.
Masi
@VonC: Please, see my new addition to your answer.
Masi
A: 

how are you getting yellow commit hashes???

of