Changing message to already pulled commits

I’ve been working on a project where all commit messages where made in Spanish. Now I’m working with people from other countries so I’d like to change commit messages to English. Is it possible?

  • how to download single folder OR file in gitlab repository
  • How to migrate gitlab backups to new server which has latest gitlab version
  • IntelliJ and AndroidStudio - connect to respository
  • Sync Git Repository on 2 remotes
  • gitlab-shell -> git push -u origin master -> fatal: The remote end hung up unexpectedly
  • Gitlab : add quick-actions in commit comments
  • Cant create release with git flow in source tree
  • Have sshd forward logins of git user to a (GitLab) Docker container
  • One Solution collect form web for “Changing message to already pulled commits”

    Yes, you will have to do what is known as an “interactive rebase”. This will allow you to, amongst other things, rewrite the commit message.

    Use git log --topo-order --reverse to find the first commit ID (it will be the first one) then use git rebase -i to rewrite all the commit messages. It will look something like this.

    $ git rebase -i <first commit ID>
    pick ea21ffd Version 2.13.1
    pick b98b956 Allow the extra_compiler_flags option to work.
    pick d096ee5 Fix "perl5i -e" from segfaulting.
    # Rebase 42c49b0..d096ee5 onto 42c49b0 (3 command(s))
    # Commands:
    # p, pick = use commit
    # r, reword = use commit, but edit the commit message
    # e, edit = use commit, but stop for amending
    # s, squash = use commit, but meld into previous commit
    # f, fixup = like "squash", but discard this commit's log message
    # x, exec = run command (the rest of the line) using shell
    # d, drop = remove commit
    # These lines can be re-ordered; they are executed from top to bottom.

    In your case you’d change every pick to reword.

    See Changing Multiple Commit Messages in Pro Git for more information about doing an interactive rebase.

    Note that in doing so you don’t rewrite history, you create new history. All the commit IDs will change. Anyone who has the code checked out will get an error when trying to push and pull and have to resync. See The Perils Of Rebasing in the Pro Git book for more information.

    Git Baby is a git and github fan, let's start git clone.