Skip to main content

Posts

Showing posts with the label delete branch

push and delete remote branches

This is an action that many Git users need to do frequently, but many (including the me!!) have forgotten how to do so or simply don’t know how. Here’s the definitive guide if you’ve forgotten. For this reason I put it on my dev site on cofares the with free articles resources galaxy of sites. So you have checked out a new branch, committed some awesome changes, but now you need to share this branch though with another developer. You can push the branch up to a remote very simply: git push origin <pascal> Where origin is your remote name and <pascal> is the name of the branch you want to push up. Deleting is also a pretty simple task: git push origin :<pascal> That will delete the newfeature branch on the origin remote, but you’ll still need to delete the branch locally with   git branch -d <pascal>