git basic guide
![Taegu Kang](https://cdn.hashnode.com/res/hashnode/image/upload/v1699263568388/564189da-be34-463e-a8b2-0abeca48863a.jpeg)
1 min read
![](https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/842ofHC6MaI/upload/205c7230b427c5b96390ee5dea17b7ae.jpeg)
- 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
![Taegu Kang](https://cdn.hashnode.com/res/hashnode/image/upload/v1699263568388/564189da-be34-463e-a8b2-0abeca48863a.jpeg)