GitHub - Change Misspelled Commit Message -
is there way in github change commit message if i've committed message has typo or dumb written in it?
i know can ammend commit thing (which replaces previous commit) cli, there way edit commit message github.com site interface?
if problem commit more 1 commit ago, have fall interactive rebase. example, if notice misspelling 3 commits ago, type this:
git rebase -i head~4 then rebase open default editor view looked this:
pick c5052cb updated workshop instructions pick 6d6cd60 upgraded plugin 0.6.1 pick c6d0921 upgraded wrapper gradle 1.2 pick 7a111da upgraded 0.7 of liquibase gradle plugin. # rebase 097e6b2..7a111da onto 097e6b2 # # commands: # p, pick = use commit # r, reword = use commit, edit commit message # e, edit = use commit, stop amending # s, squash = use commit, meld previous commit # f, fixup = "squash", discard commit's log message # x, exec = run command (the rest of line) using shell # you'd want edit third line (the 1 referring commit c6d0921) start word "reword" instead of "pick." once save , exit editor, you'll find right in editor commit's message in front of you. correct misspelling, save , exit, , well.
note doing or doing commit --ammend dangerous business if you've pushed these commits upstream repo. why there's no way on github.com directly. if want change commits you've pushed, that's separate matter entirely. :)
Comments
Post a Comment