- remote repository의 branch와 local repository의 branch는 별개
- local repository에서 branch 생성 후 remote repository에 push 하면 remote repository에도 branch 생성됨
git init
git remote add <remote name> <url>
git clone <url>
git pull <remote name> <branch name>
git add .
git commit -m "#"
git push <remote name> <branch name>
git fetch
git fetch <remote name>
git fetch <remote name> <branch name>
git merge <branch name>
git branch <branch name>
git switch <branch name>
git switch -c <branch name>
git branch -d <branch name>
git branch -D <branch name>
pull = fetch + merge
clone = init + remote add + git pull