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 14, 2018 in Git & GitHub by Hannah
• 18,570 points
535 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,440 points
15,146 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,440 points
725 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, 2021 in Git & GitHub by MD
• 95,440 points
2,198 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,460 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 4, 2020 in Git & GitHub by SRI
953 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP