git global setup
git config --global --edit // modify git config file
or
// config username and email
git config --global user.name "scn4006"
git config --glboal user.email "dongguang.zhu@saurer.com"
// delete username and password
git credential-manager uninstall
git config --global credential.helper wincred
## Git store username and password
git config --global --unset credential.helper // 删除用户名和密码
git config --global credential.helper store
Create a new repository
git clone git@172.16.34.200:root/spc.git
cd spc
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Push an existing folder
cd existing_folder
git init
git remote add origin git@172.16.34.200:root/spc.git
git add .
git commit -m "Initial commit"
git push -u origin master
Push an existing Git repository
cd existing_repo
git remote rename origin old-origin
git remote add origin git@172.16.34.200:root/spc.git
git push -u origin --all
git push -u origin --tags