How to Change GitHub Branch Names Example

preview_player
Показать описание
Need a quick example of how to change GitHub branch names? It's not that hard. There's actually a Git branch rename function in the website, so you can change a branch name in GitHub quickly and online. But, you still need to push those branch name changes down to all of your developer, which means a little bit of coordination on their end.

The bottom line? After you rename a GitHub branch, your clients must do a git fetch --prune, merge any changes from the old branch into the renamed branch, and then do a git branch --delete call to delete their local copy of the GitHub branch that was renamed on the remote server.
Рекомендации по теме
Комментарии
Автор

The best video out there. Thank you Cameron

TickTickBoom
Автор

So useful video. Tnx!
Can I change name the remote master branch to main the same way?
If - Yes. Will that affect the commit history?

innamel_UA
Автор

awesome video man! helped me out with my team's group project

mafazabrar