创建仓库
- $ pwd
找到当前位置
$ cd d:
$cd excellent_fashion_moblie
把文件上传到版本库
git add .
gigit commit -am "update"
本地仓库同步到origin master
- 在github上创建远程仓库
git remote add <name> <url>
name是你的仓库的名字,如果是origin,可直接push.
如果要上传到其他仓库,比如coding
则:$ git remote add coding https://git.coding.net/……..git
往后git push coding即可。
- 在git运行这两行指令
这时候github上就有内容啦!
本教程详细介绍了如何在本地计算机上创建Git仓库,将文件上传至版本库,并同步到GitHub远程仓库。包括使用命令行进行初始化、添加、提交、推送等操作,以及如何在GitHub平台上创建新的远程仓库。
1709

被折叠的 条评论
为什么被折叠?



