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,460 points
769 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,260 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,460 points
685 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,460 points

edited Nov 19, 2020 by MD 828 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,460 points
16,828 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,062 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,260 points
1,142 views
–1 vote
1 answer
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