git 本地项目关联新repo

git init

git add .

git commit -m "初始化"

git remote add origin repo-url

git pull origin master --allow-unrelated-histories

git push -u origin master

gitignore 内容生成工具

猜你喜欢

转载自www.cnblogs.com/myesn/p/git-remote-add.html