This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = checkout | |
st = status | |
ls = log --stat | |
cp = cherry-pick | |
lsshort = log --stat --abbrev-commit | |
lsnm = log --stat --no-merges | |
lslast = "!f() { \ | |
git ls-tree --name-only HEAD $1 | while read filename; do echo \"$(git log -1 --date=iso --pretty=format:'%ad' -- $filename) $filename\"; done \ | |
}; f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IMAGE_NAME := whatever/whatever | |
.PHONY: docker-build version-increment bc-check | |
docker-build: version-increment | |
DOCKER_BUILDKIT=1 docker buildx build -t $(IMAGE_NAME):v$(shell cat version.txt) . | |
version-increment: bc-check | |
bc <<< "1 + $(shell cat version.txt)" > version.txt | |
bc-check: |
OlderNewer