git把本地工程推送到远程仓库
假设远程地址为
https://gitee.com/donghuawang0658/git-study.git
分支:
test
本地操作
- git init
- git remote add origin https://gitee.com/donghuawang0658/git-study.git
- git pull origin test
- git checkout -b test
- git add .
- git commit -m '推送到远程'
- git push (--force) origin test --强制推送到远程