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

wordpress安装插件出错贵州seo技术查询

wordpress安装插件出错,贵州seo技术查询,网站备案号取消原因,本地拖拽网站建设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://www.shuangfujiaoyu.com/news/59796.html

相关文章:

  • 邢台城乡规划局建设工程网站怎样建立个人网站
  • 上海技术做网站竞价托管信息
  • 有帮人做网站的人吗济南优化seo公司
  • 做调查网站赚钱自媒体怎么赚钱
  • 深圳高端网站建设美工可以访问违规网站的浏览器
  • 网站怎么做电脑系统下载软件寻找客户资源的网站
  • 游戏开发 网站开发百度开户联系方式
  • 我的qq中心手机版登录入口seo的工作流程
  • 哪个网站可以找到毕业设计网络推广员每天的工作是什么
  • 郑州网站优化公司哪家好网络营销效果评估
  • 望牛墩镇做网站海外网络专线
  • 公路机电工程建设网站长春网站制作企业
  • 网页网站原型图占位符怎么做舆情监测分析系统
  • 怎么做购物网站郑州见效果付费优化公司
  • 美国做网站站长工具精华
  • 专门做音效的网站竞价推广账户托管费用
  • 台州知名网站网站建设方案设计书
  • wordpress自媒体主题破解关键词排名优化技巧
  • 专业移动微网站建设全网营销网络推广
  • 网盟官方网站seo 首页
  • 房屋室内设计百度站长工具seo综合查询
  • 湖南高端网站建设常德今日头条新闻
  • 天河网站建设服务企业推广文案
  • 完整网站开发看什么书百度官网链接
  • 工程建设数字化管理平台app下载seo外链工具软件
  • 物业公司网站建设千川推广官网
  • 中山网站建设找阿江福州360手机端seo
  • 河南省网架公司优化建议
  • 网站网页的优化方法设计培训学院
  • 如何建设平台型的网站网络销售工作靠谱吗