美文网首页
【Git】修改已经提交的备注信息

【Git】修改已经提交的备注信息

作者: 盐果儿 | 来源:发表于2022-10-03 01:52 被阅读0次

1. 进入上次提交的记录

git commit --amend

2. 找到上次提交的备注,按 i 进入编辑模式,修改为想要的备注,按 ESC退出编辑模式,按 :wq! 保存并退出。

git push origin [branchName]

遇到问题:

1. 命令:

git push origin [branchName]

报错:

2. 命令:

git pull origin [branchName]

报错:

3. 命令:

git config pull.rebase true

4. 命令:

git add [changedFile]

git commit -m [message]

5. 命令:

git pull origin befl

报错:

6. 命令:

git cherry-pick 8371f36

提示:

7. 命令:

git cherry-pick --continue

8. 命令:

git push origin [branchName]

Reference:

https://blog.csdn.net/weixin_43544093/article/details/122957123

相关文章

  • 【Git】修改已经提交的备注信息

    1. 进入上次提交的记录 git commit --amend 2. 找到上次提交的备注,按 i 进入编辑模式,修...

  • 【git】实用命令

    修改已提交分支的备注信息:git commit --amend

  • git 修改最近的 commit message

    git 修改已经的提交信息 当我们使用 git 提交代码之后我们发现,提交信息描述有问题,想要仅仅修改描述信息而不...

  • Git

    Git 实例化仓库 查看当前状态 提交加备注信息 打开以往的提交信息 查看修改前后区别 删除文件 重名文件或移动 ...

  • git修改已经提交的commit

    git修改已经push过的commit信息 在使用git提交代码时会出现提交信息写错的情况,并且已经push到远程...

  • iOS Git使用笔记

    Git修改已经push过的commit信息: 在使用git提交代码时会出现提交信息写错的情况,并且已经push到远...

  • git分支合并非常简单

    git add .git commit -m '提交的备注信息'git push -u origin dev...

  • git修改备注信息

    1.需求由来 当我将项目提交到仓库,在使用过git commit -m '备注信息'时候,突然发现备注信息填错了,...

  • git随笔

    git 常用操作 修改提交信息本地撤销修改记录git commit --amend通过此命令进入到提交信息界面,...

  • Git

    Git 实例化仓库 git init 查看当前状态 git stauts 提交加备注信息 git commit-m...

网友评论

      本文标题:【Git】修改已经提交的备注信息

      本文链接:https://www.haomeiwen.com/subject/obwsartx.html