Skip to content
Snippets Groups Projects
Commit b735feb6 authored by nimrod's avatar nimrod
Browse files

- Moved git last-commit to a script.

parent cdb3e240
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,6 @@
ff = merge --no-edit --ff-only master
fixup = !git commit --fixup $(git last-commit)
forget = reset HEAD^
last-commit = "!git log --no-merges --abbrev-commit --format=\"%h %s\" | awk '{if ($2 != \"fixup!\" && $2 != \"squash!\") {print $1; exit}}'"
merg = merge --no-edit
posh = push --set-upstream origin HEAD
pul = pull --progress
......
#!/bin/sh
set -eu
git log --no-merges --abbrev-commit --format="%h %s" | awk '{if ($2 != "fixup!" && $2 != "squash!") {print $1; exit}}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment