T
T
tamtakoe2014-05-02 23:54:11
git
tamtakoe, 2014-05-02 23:54:11

How to remove history from a fork repository?

There is an upstream project repository, a forked origin and a local one.
Accidentally added other people's commits to my branch and pushed to origin. How to remove them from there? It is necessary that when sending to upstream there is only one of my commits. Reset, as I understand it, only works for the local repository.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tamtakoe, 2014-05-03
@tamtakoe

Understood. Helped git rebase -i HEAD~<n> //squashandpush origin <branch> --force

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question