By mistake I have pushed a commit into wrong repository 'B' instead 'A' (it was wrong repository path in repository's settings). After that the repository 'B' contains its branches plus new all branches from repository 'A'. New branches do not intersect with existing branches (like detached, or just like two separated trees). How to remove new remote branches from repository 'B' and to make the history of mistake branches hidden? All actions were made thru SourceTree (commit&push).
Asked
Active
Viewed 147 times
0
-
[old answer](http://stackoverflow.com/a/2003515/5781248) – J.J. Hakala Jul 27 '16 at 17:15
2 Answers
0
Did you try to git push originB --delete <newBranchName>
to delete the new branch on originB?

David Neiss
- 8,161
- 2
- 20
- 21
-
1I have fixed by deleting the remote branch thru local menu on the remote branch. I guess it same as `git push origin :
` – Roman.Potapkin Jul 27 '16 at 18:07