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
• 14,080 points
41 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
0 votes
1 answer

How to view the nested workflow of a local git repository?

The ‘git log’ command is your closest ...READ MORE

answered Jul 4, 2018 in Git & GitHub by Sophie may
• 9,050 points
38 views
0 votes
1 answer

How to solve the ‘Git commit -a error’?

This happens when no editor is set. ...READ MORE

answered Jul 5, 2018 in Git & GitHub by Tyrion anex
• 8,280 points
29 views
0 votes
1 answer

How to forcefully commit a file to Git even if the file is ruled as unchanged?

This is simple, just follow the below ...READ MORE

answered Jul 11, 2018 in Git & GitHub by Sophie may
• 9,050 points
21 views
+13 votes
2 answers
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

What is git rebasing?

Git rebasing is moving or combining different ...READ MORE

answered Dec 16, 2018 in Git & GitHub by Kiyara
54 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.