git init project

/ 默认分类 / 没有评论 / 466浏览

Command line instructions

Git global setup
git config --global user.name "cliveyuan"
git config --global user.email "clive@cliveyuan.com"

Create a new repository

git clone git@gitee.com:opensource4clive/java-tools.git
cd java-tools
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Existing folder or Git repository

must create project in gitee before

cd existing_folder
git init
git remote add origin git@gitee.com:opensource4clive/java-tools.git
git add -A
git commit -am 'init'
git push -u origin master