Stashing only unstaged changes in Git
Published on in Git
git stash -k
doesn't work as expected.
Use a temporary commit instead.
Published on in Git
git stash -k
doesn't work as expected.
Use a temporary commit instead.
Automatically updating a private Git submodule before builds is convenient but requires some setup.
Or any other automatic periodic builds. I'm using daily builds to automatically publish scheduled blog posts on my Eleventy site.
Published on in Git
Last updated on
Never run git push --force
.
Instead run git push --force-with-lease
or alias it to git please
.
Published on in Git
Last updated on
Run git reset HEAD~
or alias it to git undo
.
Bonus: how to use the commit message from the undoed commit.