首页 > 技术文章 > git上传新项目
99fu 2016-11-10 13:58 原文
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 )
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
先删后加 git remote rm origin
git remote add origin http://zhangxiaofu:10080/fu/CI.git