卸载github上的一个仓库或者仓库内的某个数据
原创删除github仓库或文件
1、删除github上的仓库
单击仓库下方settings
下图出现并向下显示
单击蓝色框删除仓库
输入您需要输入的位置llb1997/first,,first是仓库名称,单击黄色部分删除仓库
系统将要求您输入密码。
最后,它显示仓库不见了。
2,删除仓库中的文件
在github只能在删除仓库,但是,无法删除文件夹或文件, 所以只能通过命令来解决。
右击coding文件,单击Git Push Here
$ git pull origin master # 从远程仓库中取出物品
$ dir # 查看哪些文件夹可用
$ git rm -r --cached 169. Majority Element # 删除169. Majority Element文件夹
$ git commit -m 删除了169. Majority Element # 提交,添加操作说明
$ git push -u origin master # 更新此更改github项目上去
git pull origin master
从远程仓库中取出物品
dir
查看哪些文件夹可用
下面是如何自己做的。
每次添加或删除文件时 git commit -m 删除了169. Majority Element
然后直接 git push -u origin master
(或者 git push
),根据需要输入github帐号和密码可以同步github向上,刷新github可以看到页面
3、删除github仓库中的文件
删除github中coding仓库下的 169. Majority Element
文件,最后刷新以查看文件不存在
(右击coding文件,单击Git Push Here,然后执行以下命令)
出现这个
$ git pull origin master # 从远程仓库中取出物品
$ dir # 查看哪些文件夹可用
$ git rm -r --cached 169. Majority Element # 删除169. Majority Element文件夹
$ git commit -m 删除了169. Majority Element # 提交,添加操作说明
$ git push -u origin master # 更新此更改github项目上去
4,添加文件github仓库里面
添加文件并添加需要上载的文件coding文件,然后(右键单击)coding文件,单击Git Push Here),然后执行下面的命令。
$ git add . # 执行添加文件操作,请注意"add空格."
$ git commit -m add . # 提交,添加操作说明
$ git push -u origin master 或者$ git push # 更新此更改github项目上去
5、Github修改仓库中的文件名
$ git pull origin master # 从远程仓库中取出物品
$ dir # 查看哪些文件夹可用
#1,新文件名替换旧文件名
$ git mv -f 100. Same Tree 100.Same_Tree #git mv -f oldfolder newfolder
#2,添加新文件
$ git add -u 100.Same_Tree #添加新文件git add -u newfolder (-u该选项将更新已跟踪的文件和文件夹。)
$ git commit -m "修改文件名"
$ git push origin master
修改多个文件名
修改 101.Symmetric Tree
, 104. Maximum Depth of Binary Tree
, 110. Balanced Binary Tree
, 169. Majority Element
, 242. Valid Anagram
, 文件
版权声明
所有资源都来源于爬虫采集,如有侵权请联系我们,我们将立即删除