I understand the workings of git for the most part and it really helps to visualize the tree structure of my working tree and the remote tree. I can do this fairly well if I develop the tree myself and maintain the remote tree. But what if I enter a project midway through and have no idea of the history of the remote tree? What commands can I run after I git clone
the repo to determine what the history looks like and what I will be changing when I make commits and want to push?
Asked
Active
Viewed 53 times
0

conv3d
- 2,668
- 6
- 25
- 45
-
If you are okay not using git command line, you can download source tree which gives a detailed representation of what it looks like. – Braden Brown Jul 06 '18 at 22:13
-
@BradenBrown how do I do that? – conv3d Jul 06 '18 at 22:14
-
1Here is a link to the website https://www.sourcetreeapp.com/ once you have it downloaded, go to file > open. It will bring up an explorer, navigate to the project you want to manage then click 'select folder' – Braden Brown Jul 06 '18 at 22:15
-
@BradenBrown Unfortunately I can't use that because of privacy concerns – conv3d Jul 06 '18 at 23:10
-
Check out this post https://stackoverflow.com/questions/1064361/unable-to-show-a-git-tree-in-terminal – Braden Brown Jul 06 '18 at 23:24
1 Answers
2
Use this,
git log --graph --pretty=oneline --abbrev-commit
or use the following command taken from this article.
git log --graph --full-history --all --color --date=short --pretty=format:"%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset"

Marlon Abeykoon
- 11,927
- 4
- 54
- 75