Skip to main content
Use push, not rm; added 67 characters in body; deleted 14 characters in body
Source Link
Ryan Bigg
  • 107.9k
  • 25
  • 243
  • 264

You can remove these branches by using this command:

git rmpush origin :branch_name 

To remove the BranchA branch:

git rmpush origin :BranchA 

To remove the origin/BranchA branch:

git rmpush origin :origin/BranchA 

AndAlternatively you could use git branch -dr BranchA and so on.

Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.

You can remove these branches by using this command:

git rm origin :branch_name 

To remove the BranchA branch:

git rm origin :BranchA 

To remove the origin/BranchA branch:

git rm origin :origin/BranchA 

And so on.

Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.

You can remove these branches by using this command:

git push origin :branch_name 

To remove the BranchA branch:

git push origin :BranchA 

To remove the origin/BranchA branch:

git push origin :origin/BranchA 

Alternatively you could use git branch -dr BranchA and so on.

Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.

added 195 characters in body
Source Link
Ryan Bigg
  • 107.9k
  • 25
  • 243
  • 264

You can remove these branches by using this command:

git rm origin :branch_name 

To remove the BranchA branch:

git rm origin :BranchA 

To remove the origin/BranchA branch:

git rm origin :origin/BranchA 

And so on.

Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.

You can remove these branches by using this command:

git rm origin :branch_name 

To remove the BranchA branch:

git rm origin :BranchA 

To remove the origin/BranchA branch:

git rm origin :origin/BranchA 

And so on.

You can remove these branches by using this command:

git rm origin :branch_name 

To remove the BranchA branch:

git rm origin :BranchA 

To remove the origin/BranchA branch:

git rm origin :origin/BranchA 

And so on.

Remove every branch except BranchA and origin/BranchA. You may have deleted the origin remote, in which case you should remove the remotes remote and re-add it as the origin remote.

Source Link
Ryan Bigg
  • 107.9k
  • 25
  • 243
  • 264

You can remove these branches by using this command:

git rm origin :branch_name 

To remove the BranchA branch:

git rm origin :BranchA 

To remove the origin/BranchA branch:

git rm origin :origin/BranchA 

And so on.