项目初始化Git命令行

Git全局设置

git config --global user.name  "v_vshschen"
git config --global user.email "wx_8d487b7d02d84b44957375d1aa88442a@git.code.tencent.com"

创建一个新的版本库

git clone https://git.code.tencent.com/twii/tencent-clound-sdk.git
cd tencent-clound-sdk
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

现有的文件夹或Git版本库

cd existing_folder
git init
git remote add origin https://git.code.tencent.com/twii/tencent-clound-sdk.git
git add .
git commit -m "init"
git push -u origin master
tags: Git