git basic guide
Taegu Kang
1 min read
- 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 지단로보트)
- reference
0
Subscribe to my newsletter
Read articles from Taegu Kang directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by