git新建项目版本库

来源:互联网 发布:螃蟹秘密内裤 知乎 编辑:程序博客网 时间:2024/06/05 10:06

Git global setup:

git config --global user.name "xxx"git config --global user.email "xxx@xxx.com"

Create Repository

mkdir testcd testgit inittouch READMEgit add READMEgit commit -m 'first commit'git remote add origin git@xxx:test.gitgit push -u origin master

Existing Git Repo?

cd existing_git_repogit remote add origin git@211.154.172.172:app360.gitgit push -u origin master
0 0
原创粉丝点击