How to see the different versions of the files that we have amended after we do the commit on git

0 votes

How to see the different versions of the files that we have amended after we do the commit on git.

Dec 13, 2018 in Git & GitHub by Hannah
• 18,550 points
169 views

1 answer to this question.

0 votes

I'm not very sure if looking all different versions of your committed files is possible. But you can always revert back to previous commits.

Follow the steps:

git logs

This command will give you hash value of each commit, you can use this number to perform multiple functions and reverting to an old commit is one of them. 

Command to revert back to an older commit: 

git checkout <hash_number>
answered Dec 16, 2018 by Kiyara

Related Questions In Git & GitHub

0 votes
1 answer

How to stash untracked files of the current working directory in Git?

Hi@akhtar, In order to stash untracked files, add ...READ MORE

answered Nov 20, 2020 in Git & GitHub by MD
• 95,060 points
122 views
0 votes
1 answer

How to list all the files in a commit in Git?

Hi@akhtar, Using git diff-tree is considered as a preferred way ...READ MORE

answered Dec 22, 2020 in Git & GitHub by MD
• 95,060 points
70 views
0 votes
1 answer

How do I go to a particular version of a file in the Git repository?

Hi@akhtar, You can use git checkout <sha1> to check ...READ MORE

answered Jan 5 in Git & GitHub by MD
• 95,060 points
125 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
943 views
+2 votes
1 answer
+1 vote
1 answer
0 votes
3 answers

What is git rebasing?

HI. Rebase is nothing but a Git utility ...READ MORE

answered Sep 3, 2020 in Git & GitHub by SRI
443 views