创建新的git仓库

设置新仓库

创建完成后

复制git地址

现在已经有window git客户端了(地址:https://desktop.github.com/),但还是建议用git命令行(客户端下载完成后会有相关的步骤介绍非命令行模式的快速指导)
下载页面中的这个按钮则可以下载

下面是命令行模式 安装好git客户端后,可以设置

设置默认终端为git bash,你也可以不设置,看个人喜好,安装好之后不设置的话我的win10是powershell

然后打开 git shell

然后就是到你想要的目录
例如我的

下图切换到自己设置的目录中,然后就是克隆刚才开始时候在github上新建的目录

成功后

然后就可以继续了,把你想要上传的东西复制到你相应的本地git文件夹,如下,我的readme文件也都修改了一下

然后回到终端,执行如下命令就可以把文件上传上去了

上传成功后

如果需要将新的分支的内容合并到master分支上可以执行下面的语句

然后这样子master也就有了

删除一个git仓库(自己的)

拉到页面最后

删除后不能回滚,这里输入的是要确认删除的仓库名

网友评论