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,090 points
58 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
0 votes
2 answers

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

The closest way to view branches in ...READ MORE

answered Aug 2 in Git & GitHub by Sirajul
• 17,240 points
61 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
49 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,530 points
30 views
+13 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,380 points
111 views
0 votes
1 answer
+1 vote
1 answer
0 votes
2 answers

What is git rebasing?

In Git, there are two main ways ...READ MORE

answered Aug 2 in Git & GitHub by Sirajul
• 17,240 points
91 views