1. find the previous commit id of the needing amend commit,look as below
872945f is committed by me and need to change the author email id
6713ffa is the previous commit id
[img]
[/img]
2. run the below commit
git rebase -i -p 6713ffa
[size=11px;] [/size]
[size=11px;]change the pick to edit before [/size]872945f and type “wq” to exit
3. run the below command to amend author information
git commit --amend --author="mayun " --no-edit
git rebase -continue
4. run the below command to raise change to remote
git push --force --tags origin 'refs/heads/*' -u
refer to below
http://www.jianshu.com/p/b6add8187c06
https://www.git-tower.com/learn/git/faq/change-author-name-email

- 大小: 118.1 KB

- 大小: 163.3 KB
分享到:
相关推荐
idea commit 模板插件
使用方式: 1、解压package.rar package.rar 2、进入package文件夹,右键打开git bash 3、执行 sh install.sh 进行...4、执行git init 命令,查看当前目录是否生成 .git/gitcommit 和 .git/hooks/commit-msg 验证
personal used template for git commit. including category/bug id...
04★Git入门★第一次提交_git_commit
在Git中,提交(commit)是记录代码更改的基本单元,而`git commit`命令则是用来创建新提交的关键操作。本篇文章将聚焦于如何使用一个名为CLIprompt的命令行实用程序来提升`git commit`的编辑体验,特别是针对Node....
在 Git 中,`git commit --amend` 是一个强大的命令,用于修改最近一次提交的内容或消息。这个命令对于修正错误的提交信息或整合连续的提交非常有用。下面我们将详细探讨 `git commit --amend` 的使用方法及其适用...
在Git仓库管理中,有时出于隐私、安全或者代码版本重置等需求,我们可能需要清除commit历史记录,将仓库恢复到初次commit的状态。这个过程涉及到对Git仓库的深入操作,包括创建新分支、添加文件、删除旧分支以及强制...
欢迎来到git-commit-msg-linter :waving_hand: :eyes: 立即查看您的每条git commit消息 :rocket: 。 一个git“ commit-msg”挂钩,用于根据流行的来替换您的git commit消息。 作为一个挂钩,它将在每次提交时运行...
最后提交日志 Node.js模块可获取最新的git commit信息-主要由CI / CD和构建阶段使用。谁在用 :star: :star: :star: :star: :star: :star: :star: :star: :star:用法 const LCL = require ( 'last-commit-log' ) ;...
从 git commit 消息管理更改日志 命令 有2个可执行命令: bin/控制台 gitlog:branch [path_to_repo] 显示 repo 的分支。 bin/控制台 gitlog:commit [path_to_repo] 显示或导出日志。 该命令支持以下参数: --...
需要被合并的commit信息,将pick命令改为 s 命令,将s合并到pick上,时间上是s向更早的pick上合并;ESC 输入 :wq 回车 弹出信息,ESC 输入 :wq 回车 打印出成功 git log oneline -n,查看n条log信息,已修改
maven git commit id plugin git-commit-id-plugin is a plugin quite similar to ...
1. **`git commit` 命令**: 当你对代码进行了修改并希望保存这些更改时,通常会使用 `git add` 添加到暂存区,然后通过 `git commit` 创建一个新的提交。提交信息应该清晰、简洁且遵循一定的规范,例如Angular的...
git-remind是一个命令行工具,可以防止您忘记git-commit和git-push。 产品特点 git-commit / git-push状态 git-remind检查您计算机中所有git存储库的状态,并显示状态是否存在未提交的文件和应提交到远程的预先提交...
git规范化使用的jar包,是可以自定义提交类型的那种,因为现在在idea上下载的这种插件提交类型是选择项,不能自定义
"Learning_Push:学习git commit"这个主题旨在教你如何有效地使用Git的`commit`命令,它是Git的核心功能之一,对于理解Git的工作流程至关重要。在这个教程中,我们将深入探讨`commit`的用途、语法以及它在Git中的...
git commit格式
shortcut of git add + git commit -m + git push Install npm i gpp -g Usage 一条命令,一次性执行: git add . 、 git commit -m 信息 和 git push gpp 任何需要commit的信息 带空格的提交: gpp 首页优化 接口...
在日常的开发中,目前主流的代码管理工具就是 git 了,当我们对代码进行改动了,首先得git commit提交到本地仓库,git 规定了提交时必须填写提交信息作为改动说明,保存 commit 历史中,可以找到历史代码,也方便他人 ...
Vscode的Git-commit-plugin安装以上vscode(版本> = 1.42.0),然后需要安装git插件。遵循,如下所示: (): <subject><BLANK><body><BLANK><footer>类型必须为以下之一: 壮举:一项新功能fix :一个错误修复...