git初始化操作:從空目錄或者已存在的項目

Command line instructions

1. Git global setup

git config --global user.name "username"
git config --global user.email "[email protected]"

2. Create a new repository

git clone git@git.com:ppp.git
cd pyspider
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

3. Existing folder or Git repository

cd existing_folder
git init
git remote add origin git@git.com:ppp.git
git add .
git commit
git push -u origin master
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章