如何使用git的命令和上传到远程仓库
首先网上登录github的网站进行注册,注册分为三个步骤,创建自己的仓库 获取连接
git remote add origin https://github.com/XXXX/xxxxxx
利用,命令进行上传
接下来按照Github的官方提示操作即可
…or create a new repository on the command lineecho "# python3-webapp-Su" >> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin https://github.com/sufadi/python3-webapp-Su.gitgit push -u origin master12345678
git init
进入自己的目录
D:\python3-webapp-Su>git initInitialized 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 masterCounting 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 -> masterBranch 'master' set up to track remote branch 'master' from 'origin'.
效果
其中空文件夹无法上传,故不显示
查看原文 >>