傻瓜版Command line instructions
2015-12-30
Git global setup(全局设置)
git config --global user.name "ownname"
git config --global user.email "134xxxx3469@163.com"
Create a new repository【创建一个仓库】
git clone git@github.com:wwxXX/Hxxx.git
cd Hxxx
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder or Git repository【存在项目夹,Git仓库】
cd existing_folder
git init
git remote add origin git@github.com:wwxXX/Hxxx.git
git push -u origin master
.gitignore 更新后操作,使.gitignore生效
git rm -r --cached .
git add .
git commit -m 'update .gitignore'