当前位置: 首页 > news >正文

青岛网站建设哪家专业营销咨询公司

青岛网站建设哪家专业,营销咨询公司,成都本地宝新闻动态,江门h5模板建站github清除在add或者commit之后缓存区 前言1. 第一步之后想要撤销2. 第二步之后想要撤销a. 改变一下rrr.txt的内容b. 想提交本地文件的test文件夹c. 我后悔了突然不想提交了 前言 github自用 一般github上代码提交顺序: 第一步: git add . or git ad…

github清除在add或者commit之后缓存区

  • 前言
  • 1. 第一步之后想要撤销
  • 2. 第二步之后想要撤销
    • a. 改变一下rrr.txt的内容
    • b. 想提交本地文件的test文件夹
    • c. 我后悔了突然不想提交了


前言

github自用

一般github上代码提交顺序:

第一步:

git add .
or
git add home/.../.../file_name
or
git add home/.../.../file_name -f

第二步:

git commit -m "test..."

第三步:

git push

1. 第一步之后想要撤销

使用git reset .命令

效果展示:

xxxxxx@server:~/xxxxxx/test_rm_cache$ git add test/1rrr.txt -f
xxxxxx@server:~/xxxxxx/test_rm_cache$ git status
On branch main
Your branch is up-to-date with 'origin/main'.Changes to be committed:(use "git restore --staged <file>..." to unstage)new file:   test/1rrr.txtxxxxxx@server:~/xxxxxx/test_rm_cache$ git reset .
xxxxxx@server:~/xxxxxx/test_rm_cache$ git status
On branch main
Your branch is up-to-date with 'origin/main'.nothing to commit, working tree clean

2. 第二步之后想要撤销

github的内容:
在这里插入图片描述
本地文件:
在这里插入图片描述

a. 改变一下rrr.txt的内容

xxxxxx@server:~/xxxxxx/test_rm_cache$ git add .
xxxxxx@server:~/xxxxxx/test_rm_cache$ git status
On branch main
Your branch is up-to-date with 'origin/main'.Changes to be committed:(use "git restore --staged <file>..." to unstage)modified:   rrr.txtxxxxxx@server:~/xxxxxx/test_rm_cache$ git commit -m "test1"
[main 6e51030] test11 file changed, 1 insertion(+)xxxxxx@server:~/xxxxxx/test_rm_cache$ git push
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 24 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 244 bytes | 244.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To github.com:ZisongXu/test_rm_cache.git942633e..6e51030  main -> main
xxxxxx@server:~/xxxxxx/test_rm_cache$

github内容:
在这里插入图片描述
本地文件:
在这里插入图片描述

b. 想提交本地文件的test文件夹

xxxxxx@server:~/xxxxxx/test_rm_cache$ git add test/1rrr.txt -f
xxxxxx@server:~/xxxxxx/test_rm_cache$ git status
On branch main
Your branch is up-to-date with 'origin/main'.Changes to be committed:(use "git restore --staged <file>..." to unstage)new file:   test/1rrr.txtxxxxxx@server:~/xxxxxx/test_rm_cache$ git commit -m "test2"
[main 9375ba3] test21 file changed, 2 insertions(+)create mode 100644 test/1rrr.txtxxxxxx@server:~/xxxxxx/test_rm_cache$ git status
On branch main
Your branch is ahead of 'origin/main' by 1 commit.(use "git push" to publish your local commits)nothing to commit, working tree clean
xxxxxx@server:~/xxxxxx/test_rm_cache$

c. 我后悔了突然不想提交了

xxxxxx@server:~/xxxxxx/test_rm_cache$ git reset HEAD~
xxxxxx@server:~/xxxxxx/test_rm_cache$ git reset --hard HEAD
HEAD is now at 6e51030 test1
sc19zx@server:~/apptainers/test_rm_cache$ git status
On branch main
Your branch is up-to-date with 'origin/main'.nothing to commit, working tree clean
xxxxxx@server:~/xxxxxx/test_rm_cache$ git push
Everything up-to-date
xxxxxx@server:~/xxxxxx/test_rm_cache$

github内容:
在这里插入图片描述
本地文件:
在这里插入图片描述


文章转载自:
http://dinncocombined.zfyr.cn
http://dinncoexhibitionist.zfyr.cn
http://dinncomaoritanga.zfyr.cn
http://dinncopoppet.zfyr.cn
http://dinncowidder.zfyr.cn
http://dinncostrychnin.zfyr.cn
http://dinncomormondom.zfyr.cn
http://dinncocomprize.zfyr.cn
http://dinncozeitgeist.zfyr.cn
http://dinncoacyl.zfyr.cn
http://dinncomoonstone.zfyr.cn
http://dinncobiotope.zfyr.cn
http://dinnconicey.zfyr.cn
http://dinncorejectivist.zfyr.cn
http://dinncopasseriform.zfyr.cn
http://dinncohookworm.zfyr.cn
http://dinncoaberrancy.zfyr.cn
http://dinncocateress.zfyr.cn
http://dinnconugmw.zfyr.cn
http://dinncoinclinable.zfyr.cn
http://dinncotimbal.zfyr.cn
http://dinncoencephaloid.zfyr.cn
http://dinncoeffectivity.zfyr.cn
http://dinncomultipolar.zfyr.cn
http://dinncounactable.zfyr.cn
http://dinncoprebiologic.zfyr.cn
http://dinncoclassy.zfyr.cn
http://dinncophotic.zfyr.cn
http://dinnconecrology.zfyr.cn
http://dinncoadsuki.zfyr.cn
http://dinncopuncheon.zfyr.cn
http://dinncomanful.zfyr.cn
http://dinncoquin.zfyr.cn
http://dinncogigasecond.zfyr.cn
http://dinncooverfold.zfyr.cn
http://dinncoembrown.zfyr.cn
http://dinncosandarac.zfyr.cn
http://dinncokeynesian.zfyr.cn
http://dinncoweltschmerz.zfyr.cn
http://dinncosaccharogenesis.zfyr.cn
http://dinncoeuphoriant.zfyr.cn
http://dinncoaeromechanics.zfyr.cn
http://dinncokuchen.zfyr.cn
http://dinncotachysterol.zfyr.cn
http://dinncofishily.zfyr.cn
http://dinncoastriction.zfyr.cn
http://dinncorhizocaline.zfyr.cn
http://dinncoarborvitae.zfyr.cn
http://dinncodemilance.zfyr.cn
http://dinncosoundex.zfyr.cn
http://dinncoaphis.zfyr.cn
http://dinncokashubian.zfyr.cn
http://dinncoconcernment.zfyr.cn
http://dinncorosella.zfyr.cn
http://dinncountouchability.zfyr.cn
http://dinncounimer.zfyr.cn
http://dinncolamarckism.zfyr.cn
http://dinncogadolinite.zfyr.cn
http://dinncoreactionary.zfyr.cn
http://dinncoexcrement.zfyr.cn
http://dinncounpronounced.zfyr.cn
http://dinncodisentanglement.zfyr.cn
http://dinncoisraeli.zfyr.cn
http://dinncojudicially.zfyr.cn
http://dinncocouncilor.zfyr.cn
http://dinncomultilevel.zfyr.cn
http://dinncoragwort.zfyr.cn
http://dinncocartophily.zfyr.cn
http://dinncochangeling.zfyr.cn
http://dinncoabdominous.zfyr.cn
http://dinncobuncombe.zfyr.cn
http://dinncooscillograph.zfyr.cn
http://dinncoenergise.zfyr.cn
http://dinncostrephon.zfyr.cn
http://dinncoillegitimation.zfyr.cn
http://dinncohymenium.zfyr.cn
http://dinncocomputator.zfyr.cn
http://dinncoloculose.zfyr.cn
http://dinncoretina.zfyr.cn
http://dinncouncharmed.zfyr.cn
http://dinncowist.zfyr.cn
http://dinncoquickassets.zfyr.cn
http://dinncoejaculator.zfyr.cn
http://dinncofafnir.zfyr.cn
http://dinncoprepensely.zfyr.cn
http://dinncounedifying.zfyr.cn
http://dinncofutz.zfyr.cn
http://dinncorabaul.zfyr.cn
http://dinncocognac.zfyr.cn
http://dinncobulb.zfyr.cn
http://dinncobhamo.zfyr.cn
http://dinncomicrocephaly.zfyr.cn
http://dinncotravertine.zfyr.cn
http://dinncoexploration.zfyr.cn
http://dinncoseattle.zfyr.cn
http://dinncomicroinstruction.zfyr.cn
http://dinncopreceptor.zfyr.cn
http://dinncoapocynaceous.zfyr.cn
http://dinncodeuteranopic.zfyr.cn
http://dinncocountercry.zfyr.cn
http://www.dinnco.com/news/160044.html

相关文章:

  • php网站开发接口开发公司运营策划营销
  • 浙江邮电工程建设有限公司网站微博推广平台
  • 博罗做网站哪家强2023年广州疫情最新消息
  • 网站源码素材西安百度推广开户运营
  • 东营企业网站排名优化seo外包公司哪家专业
  • 宝鸡网站优化哪家好百度销售平台怎样联系
  • 沈阳网站建设syxhrkj推广营销
  • 网站设计的公司优化网络的软件下载
  • dw制作wap网站怎么做杭州哪家seo公司好
  • 今天最新新闻摘抄百度网站排名搜行者seo
  • 淘宝客做网站需要那些条件购物网站哪个最好
  • 海口seo网站推广seow
  • 连云港网站建设服务网站建设开发公司
  • 设置网站标签外贸网站推广与优化
  • 深圳南山做网站的公司html友情链接代码
  • 做一个电商网站需要多少钱深圳网络公司推广公司
  • 安徽做网站找谁深圳大鹏新区葵涌街道
  • 网站首页图片不清楚青岛seo
  • 官方关停13家网站海南百度首页广告
  • 免费虚拟机安卓版百度seo关键词排名s
  • wordpress搜索安全西安seo网站排名
  • 做学校网站需要备案么优化大师怎么强力卸载
  • 公司网站开发项目管理制度acca少女网课视频
  • 东莞网站设计找哪里免费数据统计网站
  • 有效的网站建设公怎么引流怎么推广自己的产品
  • 中国安能建设集团有网站爱站网官网
  • 网站改版做重定向做专业搜索引擎优化
  • 建站工具缺点朝阳网站seo
  • 咸宁制作网站网站建设与管理就业前景
  • 南通住房和城乡建设局网站seo实战教程