登陆Github
New一个
Repositories/New
Next
Next
接下来按照Github的官方提示操作即可
…or create a new repository on the command line
echo "# python3-webapp-Su" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/sufadi/python3-webapp-Su.git
git push -u origin master
git init
进入自己的目录
D:\python3-webapp-Su>git init
Initialized empty Git repository in D:/python3-webapp-Su/.git/
git add
git add 将当前的所以 add
D:\python3-webapp-Su>git add .
git commit -m “first commit”
[master]Fist Commit
# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# On branch master
#
# Initial commit
#
# Changes to be committed:
# new file: conf.txt
# new file: readme.txt
#
git remote add
D:\python3-webapp-Su>git remote add origin https://github.com/sufadi/python3-webapp-Su.git
git push -u origin master
D:\python3-webapp-Su>git push -u origin master
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (4/4), 450 bytes | 112.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
To https://github.com/sufadi/python3-webapp-Su.git
* [new branch] master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.
效果
其中空文件夹无法上传,故不显示