Skip to content

Git 存档 #86

@yihong0618

Description

@yihong0618

怎么修改git commit 信息

  1. git commit --amend 本地
  2. git commit --amend
    git push origin master --force 刚push
  3. git rebase -i HEAD~X X is the number of commits to go back
    Move to the line of your commit, change pick into edit,
    then change your commit message:
    git commit --amend
    Finish the rebase with:
    git rebase --continue 本地没push old

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions