-
Overview
In english, maybe this question:
How to push local directory to github, and create a new repository?
-
Solutions
-
Github: Create a new repository on Github, get the https URL
创建时保证是空的,不要添加Readme或.gitignore, 避免出现 master had recent pushes
Compare & pull request
-
Local:
cd project git init git add * git commit -m "Initial" git remote add origin https_URL git remote -v git push -f origin master
-
-
References