天天看點

建立/初始化git項目

Command line instructions

Git global setup
git config --global user.name "你的名字"
git config --global user.email "你的郵箱"
      
Create a new repository
git clone ${git位址}
cd demo
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位址}
git add .
git commit
git push -u origin master      

雖千萬人,吾往矣!