Local projects associated with the new 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 content generation tool

Guess you like

Origin www.cnblogs.com/myesn/p/git-remote-add.html