git 项目最初的构建

傻瓜版Command line instructions

2015-12-30


Git global setup(全局设置)

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

Create a new repository【创建一个仓库】

git clone [email protected]: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 [email protected]:wwxXX/Hxxx.git
git push -u origin master

.gitignore 更新后操作,使.gitignore生效

git rm -r --cached .
git add .
git commit -m 'update .gitignore'

你可能感兴趣的:(git 项目最初的构建)