How to checkout a remote Git branch

[ad_1] fatmawati achmad zaenuri/Shutterstock.com To check out a branch from a remote repository, use the ‘git fetch’ command and then ‘git branch -r’ to list the remote branches. Choose the branch you need and use a command of the form ‘git checkout -b new-branch-name origin/remote-branch-name’. If you use multiple repositories, change the ‘origin’ part of … Read more

Como renomear um branch no Git

[ad_1] Para alterar o nome da ramificação local atual, use “git branch -m new-name”. Para alterar o nome de um branch local dentro de outro, use “git branch -m old-name new-name”. Para renomear um branch remoto, exclua-o com “git push origin –delete old-name” e, em seguida, envie o branch local renomeado com “git push origin … Read more

💬