How to Manage Remote Branches in Git

Author: , October 19th, 2017

Git does not download all branches unless you tell it to. Until then, they are ‘remote’ branches. Use -r to list remote branches: git branch -r git fetch –all git pull –all If you see this error: fatal: The current branch CT-37 has no upstream branch. Push the current branch and set the remote as […]

How To Delete a Branch from a Remote Repo in GIT

Author: , November 21st, 2012

Do it locally: 1 git branch -d yourBranchName git branch -d yourBranchName Deleted branch yourBranchName (was 340c10d). Do it remotely, and please note the : below! (replace origin with your repo, if different) 1 git push origin :yourBranchName git push origin :yourBranchName To git.yourServer.com:/repos/yourProject.git – [deleted] yourBranchName