made-in-akira/git spells ii

49 lines
1.2 KiB
Text
Raw Normal View History

need punctuation?
stuff like !! is often weird shorthands in bash, but you can evade it with \!
so, yknow, "thank you!!" becomes "thank you\!\!"
need to change the last commit's message?
git commit --ammend
akira — Today at 20:21
what the fuck, git
um. duck duck bingle how to use exclamation marks in a git commit message
oatmealine — Today at 20:23
this is a bash thing !
akira — Today at 20:23
oh!
oatmealine — Today at 20:23
it defaults !! to your last typed command, for example
you can escape it like \!\!
akira — Today at 20:23
ohhh
thank you!
oops that's 2 commits with a slightly different message
i was thinking about this a while before this can i change the git commit message for an existing commit before pushing?
oatmealine — Today at 20:24
git commit --amend for latest
donmt know anything else
maia — Today at 20:25
uuuuh
oatmealine — Today at 20:25
you can probably pass in a commit hash after amend
maia — Today at 20:25
interactive rebase or resetting if u were to want to merge them but i am too sick to rember how to best explaim that
akira — Today at 20:25
thanks!!
maia — Today at 20:26
soft resetting is easiest
for this
since its the last two commits
akira — Today at 20:27
oh??
soft reset?