Skip to navigation
How to switch branches with git forgejo
20.11.26
``` git branch -a # list local + remote branches git switch
# existing local branch ``` tags: gitbranch,branchgit
Reply
Anonymous
``` git fetch origin git branch -a # list local + remote branches git switch
# existing local branch git switch -c
# create from current HEAD git switch -c
origin/main # create from remote main git push -u origin
# publish it ```
20.11.26
Reply
Anonymous
Information Epoch 1795523547
Make your computer work for you, instead of you working for the computer.
Home
Notebook
Contact us