paint-brush
How to Delete Commits From Remote in Gitby@timmouskhelichvili
300,268 reads
300,268 reads

How to Delete Commits From Remote in Git

by Tim Mouskhelichvili2mMay 31st, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow
EN

Too Long; Didn't Read

To delete commits from remote, you can use the git reset command if your commits are consecutive from the top or an interactive rebase otherwise. After you delete the commits locally, push those changes to the remote using the git push command with the force option.
featured image - How to Delete Commits From Remote in Git
Tim Mouskhelichvili HackerNoon profile picture
Tim Mouskhelichvili

Tim Mouskhelichvili

@timmouskhelichvili

I am a Freelance Developer & Consultant from Montreal, Canada 🇨🇦. I specialize in React & TypeScript development.

0-item
1-item

STORY’S CREDIBILITY

Guide

Guide

Walkthroughs, tutorials, guides, and tips. This story will teach you how to do something new or how to do something better.

Code License

Code License

The code in this story is for educational purposes. The readers are solely responsible for whatever they build with it.

L O A D I N G
. . . comments & more!

About Author

Tim Mouskhelichvili HackerNoon profile picture
Tim Mouskhelichvili@timmouskhelichvili
I am a Freelance Developer & Consultant from Montreal, Canada 🇨🇦. I specialize in React & TypeScript development.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite