git初始化并关联远程仓库

本地项目关联码云项目

git init

git remote add origin https://gitee.com/doufengle/HowTomcatWorks.git

git push -u origin master

本地有提交,远程也有提交

git pull origin master –allow-unrelated-histories

git branch –set-upstream-to=origin/master master

1
2
3
4
5
6
cd existing_folder
git init
git remote add origin http://git.hopson.io:9999/butler/backend-server/easylife-marketing.git
git add .
git commit -m "Initial commit"
git push -u origin master

git初始化并关联远程仓库
http://hanqichuan.com/2020/03/30/git/git初始化并关联远程仓库/
作者
韩启川
发布于
2020年3月30日
许可协议