首先,確保git已經(jīng)成功的安裝好了
然后在github上新建一個倉庫:例如MyTest
使用git bash命令行:
1 . create a new repository on the command line
在本地磁盤中新建一個空文件夾:例:MyTest
cd MyTest
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/643435675/MyTest.git
git push -u origin master
2 . push an existing repository from the command line
git remote add origin https://github.com/643435675/MyTest.git
git push -u origin master
可以看下截圖:我上傳django_blog的代碼

這里主要是push到github上的操作.png
ending......