命令行指令
Git 全局设置
git config --global user.name "15510728111"
git config --global user.email "15510728111@163.com"
创建新版本库
git clone https://code.aliyun.com/15510728111/git-osc.git
cd git-osc
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master (或 git push )
已存在的文件夹或 Git 仓库
cd existing_folder
git init
git remote add origin https://code.aliyun.com/15510728111/git-osc.git
git add .
git commit -m "说明"
git push -u origin master
如果git地址换啦,或已存在:
先删后加
git remote rm origin
git remote add origin http://zhangxiaofu:10080/fu/CI.git