I have been learning git by playing with its commands and reading stuff. Here is what I can see, I am expecting a graph similar to what I did on the right.
This is confusing, How should the tree look like because I cannot see my other commits? Why can't I see my commits?
Here is what I did:
c08b318
Commited a file called README.md and pushed to mastersomethingnew
643f1b0
modified README.md on somethingnew
branch then commit the modified file1029180
and ad34cc2
somethingnew
created a new file called NewFile.txt and commited the file a526cd9
Try gitk --all
, which will display all branches and tags in your repository.
By default, you're getting something like just the current branch's ancestry.