On Sun, 17 Nov 2013 21:04:45 -0800 (PST)
stoici...@aol.com wrote:

> I have been contributing to a remote repository for 6 months. I have
> made more than 100 commits and pushes to one of its branches. Is
> there  a way to remove all the pushed commits I contributed to that
> repository?

Depends on how do you define "remove".

If you want the commits to disappear but the changes they introduce to
persist, you need "squashing".

If you want all the commits to just disappear *along with the changes*
they introduce, just remove them.

For both these cases, you have to fetch that branch into a local
repository and apply an appropriate call to `git rebase -i` on it.
Then you'll have to force-push the updated branch into the remote
repository *replacing* the original one.
You'll both need permissions to do that and have to think through the
possible repercussions of this step.

If you, instead, just want the changes made by these commits to be
reverted, look at `git revert`.

You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to