首页
  • Java
  • Linux
  • Deploy
  • Application

Xiao ku

板砖师傅
首页
  • Java
  • Linux
  • Deploy
  • Application
  • Nginx

  • Git

    • 修改已提交的commit的注释
    • 修改已提交的用户名与邮箱
      • 命令行执行
      • 更新远程仓库
    • 纯Git服务器搭载
  • Docker

  • Vue

  • Macos

  • Application
  • Git
xiaoku
2023-03-10
目录

修改已提交的用户名与邮箱

# 命令行执行

git filter-branch --env-filter '

oldEmail="71479461+ok1996@users.noreply.github.com"
newName="ok1996"
newEmail="ku29@qq.com"

if [ "$GIT_COMMITTER_EMAIL" = "$oldEmail" ]; then
    export GIT_COMMITTER_NAME="$newName"
    export GIT_COMMITTER_EMAIL="$newEmail"
fi

if [ "$GIT_AUTHOR_EMAIL" = "$oldEmail" ]; then
    export GIT_AUTHOR_NAME="$newName"
    export GIT_AUTHOR_EMAIL="$newEmail"
fi

' --tag-name-filter cat -- --branches --tags
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

# 更新远程仓库

git push -f
1
上次更新: 2023/03/10, 09:02:56
修改已提交的commit的注释
纯Git服务器搭载

← 修改已提交的commit的注释 纯Git服务器搭载→

Copyright © 2019-2024 | 闽ICP备20012188号-1
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式