How to rename git branch
# How to rename local git branch git branch -m newBranchName # If the old branch name has alrady been pushed to remote, # you'd need to do a bit of cleanup. # To list all your branches: git branch -a
May 7, 20241 min read1
Search for a command to run...
Series
# How to rename local git branch git branch -m newBranchName # If the old branch name has alrady been pushed to remote, # you'd need to do a bit of cleanup. # To list all your branches: git branch -a
List tags git tag -l Push all tags to remote git push [remote_name] --tags
To switch from one git branch to another, simply type: git switch yoBranch
Git pull downloads the master branch only. To download all branches from the remote repo, simply add --all like so git pull --all # Other useful options # List all branches on remote git branch -r # fetch all branches git fetch --all