How can i remove all data/branches used and each and everything in my git. i have set my default branch to master but while coding using command git status still shows branch A. Thanks in advance
Asked
Active
Viewed 74 times
1 Answers
2
You may want to force push (see comment) and possibly delete all remote branches as well (other than master).
You can delete all remote branches with something like this:
git branch | grep -v 'master$'| xargs git push --delete
Are you sure you want to do this, though? It sounds a lot like you just want to return to master, in which case: git checkout master

ericat
- 191
- 1
- 3