git初始化的几句shell

Command line instructions

Git global setup
git config --global user.name "abccccccc"
git config --global user.email "abccccccc@xxx.com.cn"

Create a new repository
git clone git@gitlab.zte.com.cn:abccccccc/sampleShell.git
cd sampleShell
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder or Git repository
cd existing_folder
git init
git remote add origin git@gitlab.zte.com.cn:abccccccc/sampleShell.git
git add .
git commit
git push -u origin master

原文地址:https://www.cnblogs.com/tekikesyo/p/12212691.html