Sometimes it is necessary to upload a local git project to github and keep the local commit record, as follows:
Now create a new project on github, and then execute the following code:
cd your_project
git init
git remote rm origin #删除远程地址,不要无法上传
git remote add origin http://192.168.8.250/chris/11.git
git add .
git commit -m "init commit"
git push origin master
After executing the above command, you can also see the local git commit history on github.