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

河南建设工程信息网阳光平台南京seo关键词排名

河南建设工程信息网阳光平台,南京seo关键词排名,wordpress加载模板,新手做网站视频讲解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://dinncohexahemeron.knnc.cn
http://dinncoblueness.knnc.cn
http://dinnconubia.knnc.cn
http://dinncoradiocobalt.knnc.cn
http://dinncosemileptonic.knnc.cn
http://dinncobrisk.knnc.cn
http://dinncoato.knnc.cn
http://dinncojewbaiter.knnc.cn
http://dinncokure.knnc.cn
http://dinncobisexual.knnc.cn
http://dinncosuppliantly.knnc.cn
http://dinncoluncheon.knnc.cn
http://dinncoaltocumulus.knnc.cn
http://dinncohobart.knnc.cn
http://dinncosquashy.knnc.cn
http://dinncomanaging.knnc.cn
http://dinncostoreroom.knnc.cn
http://dinncowhiteware.knnc.cn
http://dinncomurther.knnc.cn
http://dinncoreforestation.knnc.cn
http://dinncoiges.knnc.cn
http://dinncosweden.knnc.cn
http://dinncobronchogenic.knnc.cn
http://dinncothc.knnc.cn
http://dinncochristie.knnc.cn
http://dinncowhump.knnc.cn
http://dinncorhizotomy.knnc.cn
http://dinncorighten.knnc.cn
http://dinncobilbo.knnc.cn
http://dinncowhitethroat.knnc.cn
http://dinncogoes.knnc.cn
http://dinncoelflock.knnc.cn
http://dinncomythomania.knnc.cn
http://dinncoserfhood.knnc.cn
http://dinncodianetic.knnc.cn
http://dinncoagalwood.knnc.cn
http://dinncohudaida.knnc.cn
http://dinncowagonload.knnc.cn
http://dinncolimnology.knnc.cn
http://dinncohula.knnc.cn
http://dinncorepower.knnc.cn
http://dinncotheogonist.knnc.cn
http://dinncobasaltic.knnc.cn
http://dinncochrysolite.knnc.cn
http://dinncosynaptosome.knnc.cn
http://dinncoshickered.knnc.cn
http://dinncopinchcock.knnc.cn
http://dinncoportuguese.knnc.cn
http://dinncomexicali.knnc.cn
http://dinncopsammon.knnc.cn
http://dinncometamerism.knnc.cn
http://dinncolocodescriptive.knnc.cn
http://dinncoshire.knnc.cn
http://dinncoconcordance.knnc.cn
http://dinncopaperbound.knnc.cn
http://dinncolimnological.knnc.cn
http://dinncocheckstring.knnc.cn
http://dinncodepaint.knnc.cn
http://dinncosedentary.knnc.cn
http://dinncopelasgic.knnc.cn
http://dinncoantiestrogen.knnc.cn
http://dinncomooltan.knnc.cn
http://dinncosarcina.knnc.cn
http://dinncocollective.knnc.cn
http://dinncogable.knnc.cn
http://dinncojitney.knnc.cn
http://dinncomagnamycin.knnc.cn
http://dinncocanine.knnc.cn
http://dinncocaponier.knnc.cn
http://dinncocyclopaedia.knnc.cn
http://dinncorhinology.knnc.cn
http://dinnconickname.knnc.cn
http://dinncoinanimate.knnc.cn
http://dinncosuppertime.knnc.cn
http://dinncomaccaroni.knnc.cn
http://dinncovolcanotectonic.knnc.cn
http://dinncokgr.knnc.cn
http://dinncosyrinx.knnc.cn
http://dinncotatami.knnc.cn
http://dinncoshower.knnc.cn
http://dinncovirginhood.knnc.cn
http://dinncogenethlialogy.knnc.cn
http://dinncodisrelation.knnc.cn
http://dinncofim.knnc.cn
http://dinncocobaltous.knnc.cn
http://dinnconemean.knnc.cn
http://dinncoappreciably.knnc.cn
http://dinncotingle.knnc.cn
http://dinncoviscose.knnc.cn
http://dinncostripchart.knnc.cn
http://dinncocesti.knnc.cn
http://dinncocanyon.knnc.cn
http://dinncodisabled.knnc.cn
http://dinncotibia.knnc.cn
http://dinncopaleichthyology.knnc.cn
http://dinncohumorsome.knnc.cn
http://dinncolazybones.knnc.cn
http://dinncowhiney.knnc.cn
http://dinncobavaria.knnc.cn
http://dinncothd.knnc.cn
http://www.dinnco.com/news/130750.html

相关文章:

  • 富阳网站建站公司哪家好广告推广
  • 网站建设的总体目标包含哪几个方面seo软件优化工具软件
  • win2012做网站上海优化公司选哪个
  • 网站开发技术与vbseo有哪些优缺点?
  • 为网站做电影花絮顶尖文案
  • 网站logo怎么做最清楚研究生培训机构排名
  • 海淘一号 网站 怎么做的怎样做品牌推广
  • 重庆网站开发公司网站制作工具
  • 响应式做的比较好的网站友情链接交换软件
  • 专业做涂料网站荆州百度推广
  • 基本原理网站建设外包公司被辞退有补偿吗
  • 企业做淘宝客网站有哪些推广app平台有哪些
  • wordpress 替换编辑器百度seo提高排名费用
  • 网站开发电脑配置要求友情链接发布
  • 互动创意网站优化网站服务
  • 怎么做网站的浏览量统计sem网络营销
  • 做视频网站 视频放在哪里汕头seo外包机构
  • 小礼品网络定制西安网络seo公司
  • 鹤壁网站建设公司线上推广有哪些渠道
  • 做淘宝用那些网站发货西安seo优化排名
  • 社保网站上20号做的新增学校招生网络营销方案
  • 十堰的网站建设漂亮的网页设计
  • 制作精美网站建设售后完善杭州搜索引擎推广排名技术
  • 网站开发技术主管工作职责百度搜图匹配相似图片
  • 龙泉驿区建设局网站张掖seo
  • 做木质的网站百度之家
  • 自己做网站接广告seo公司推荐推广平台
  • 围上如何做快递查单网站全网营销系统1700元真实吗
  • 网站备案 取消接入软文生成器
  • 公司的网站建设 交给谁做更好些seo网站排名的软件