Sign in

使用筆記

create new branch

git branch <branch name>

checkout branch

git checkout <branch name>

create and checkout new branch

git checkout -b <branch name>

list all branch

git branch -a

push new branch to remote

git push -u origin <branch name>

delete remote branch

git push origin --delete <branch name>

delete local branch

git branch -d <branch name>

rename local branch

//切到要更動的分支後再下指令
git branch -m <new branch name>

網站工程師