1

I know git branch -r shows all remote branches but I want to see only those that I created using git push.

It will be a bonus if someone could show how to delete only my remote branches safely.

Imad
  • 7,126
  • 12
  • 55
  • 112

1 Answers1

1

There is no notion of branch author, but you canlist branches by:

In short, due to the nature of branches (a pointer to a commit, which can be overridden/deleted at any time), this is not 100% reliable.

See "How do I delete a Git branch locally and remotely?" for deleting a remote branch: you can push a branch deletion.

git push <remote_name> --delete <branch_name>
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • what are those colors in first link? what is I place there? – Imad Feb 10 '20 at 05:26
  • @Imad just decoration, nothing to "place". The version without colors: https://stackoverflow.com/a/19135644/6309 – VonC Feb 10 '20 at 05:27