git basic guide

Photo by Yancy Min on Unsplash

git basic guide

etc/git

  • outli ne

Basic configurations for git on WSL.

  • how-to
## 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
  • from (thanks to 지단로보트)

https://jsonobject.tistory.com/336

  • reference

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