Could I delete any of my commit which I had already push to central repository

0 votes

Could I delete any of my commit which I had already push to central repository?

Dec 21, 2018 in Git & GitHub by Ali
• 11,340 points
263 views

1 answer to this question.

0 votes

You can't delete, but you can always revert a commit that is pushed into central repository using 

git revert {commit_id}

or you could use

git reset HEAD file_name

Gir reset command will delete the unwanted commits without git logs

answered Dec 21, 2018 by Eric

Related Questions In Git & GitHub

0 votes
0 answers
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,360 points
540 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
1,890 views
+2 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, 2019 in Git & GitHub by Sirajul
• 59,190 points
723 views
0 votes
1 answer

I am not able to use pull, push, branch merge

Please execute the below command in the ...READ MORE

answered May 23, 2019 in Git & GitHub by Umer
235 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP