기타/git

git 기초 사용법

워니주니구니 2022. 12. 16. 11:41
728x90
SMALL

- 개요

WSL에서 Bash Level로 Git을 다룰 때 필요한 초기 세팅 방법

 

 

- 설정 방법

## git user
git config --global --replace-all user.name "<name>"
## git e-mail
git config --global --replace-all user.email "<e-mail>"
## git auth
git config --global credential.helper store
## git config list
git config -l
## change branch
git checkout main
## pull
git pull
## create branch & check out
git checkout -b feature/<branch>
## apply all changes
git add .
## local branch commit
git commit -m "<commit-message>"
## git push from local to origin
git push --set-upstream origin feature/<branch>
## branch list
git branch

 

- 출처 (thanks to 지단로보트)

https://jsonobject.tistory.com/336

 

 

- reference

https://backlog.com/git-tutorial/kr/

 

728x90
LIST