원하는 디렉토리에서
git init
기존 repo와 연동
git remote add orgin https://github.com/~
git config --global user.name <name>
git config --global user.email <email>
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=7200'
default는 900이다.
git config --global credential.helper store
git config --global --unset cache
본인 pc가 아니라면 지우는 것도 잊지 말자
git config --global --unset store
git config --global --list
git add .
git commit -a
git push origin [branch_name]
ex)
git push origin main
git push origin master
git reset add 한 사항을 지울 수 있다.
git config pull.rebase false
branch 이동
git checkout 브랜치
로컬 branch 삭제
git branch -d
brach 목록
git branch --list
원격 branch 삭제
git push origin --delete 브랜치