How to reset the changes in Git

0 votes

Hi Team,

I am working on Git. I have committed one change accidentally. How can I reset the changes?

Nov 20, 2020 in Git & GitHub by MD
• 95,060 points
110 views

1 answer to this question.

0 votes

Hi@MD,

Reset command can be used to undo changes at different levels. Modifiers like --hard, --soft, and --mixed can be used to decide the degree to which to reset. You can use the below command to perform the same.

$ git reset  <modifier> <commit id>
answered Nov 20, 2020 by akhtar
• 38,170 points

Related Questions In Git & GitHub

0 votes
1 answer
0 votes
1 answer

How to install Git in the Ubuntu system?

Hi@akhtar, In the Ubuntu system, you can use ...READ MORE

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

How to set a username in the Git server?

Hi@akhtar, In the Git server, you need to ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,060 points

edited Nov 19, 2020 by MD 41 views
0 votes
1 answer

How to find the hidden files in the Git repository?

Hi@akhtar, To find the hidden files in the ...READ MORE

answered Nov 19, 2020 in Git & GitHub by MD
• 95,060 points
228 views
+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
959 views
+2 votes
1 answer
0 votes
1 answer

How to delete a remote Git tag?

Hi@MD, It is very simple to delete a ...READ MORE

answered Sep 4, 2020 in Git & GitHub by akhtar
• 38,170 points
178 views
–1 vote
1 answer