// /git-push-and-delete-remote-branches

Git: Push and Delete Remote Branches

You can push the branch up to a remote very simply: git push origin newfeature Where origin is your remote name and newfeature is the name of the branch you want to push up. Deleting is also a pretty...

You can push the branch up to a remote very simply:
git push origin newfeature

Where origin is your remote name and newfeature is the name of the branch you want to push up.

Deleting is also a pretty simple task:
git push origin :newfeature

That will delete the newfeature branch on the origin remote, but you’ll still need to delete the branch locally with git branch -d newfeature.
IT-Digest AI Assistant