-3

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

Mofi
  • 42,677
  • 15
  • 72
  • 128
Jasmeet
  • 1
  • 1
  • 2
    Possible duplicate of [Force "git push" to overwrite remote files](https://stackoverflow.com/questions/10510462/force-git-push-to-overwrite-remote-files) – jhoepken Sep 01 '17 at 08:08

1 Answers1

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