Tagged: remote

Git: Push and Delete Remote Branches

- by admin

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.

« All tags