-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) Β· 720 Bytes
/
Makefile
File metadata and controls
24 lines (21 loc) Β· 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: pull push
# Pull from remote
pull:
git pull
# Push with timestamp and emoji
push:
@echo "π Preparing to push changes..."
ifndef m
$(eval m := Update changes)
endif
$(eval timestamp := $(shell date "+%Y-%m-%d %H:%M"))
git add .
git commit -m "π¦ $(m) β $(timestamp)"
git push origin main
@echo "β
Pushed with message: π¦ $(m) β $(timestamp)"
# π Open GitHub wiki in browser (auto-detect repo)
open-wiki:
$(eval repo_url := $(shell git config --get remote.origin.url))
$(eval clean_url := $(shell echo $(repo_url) | sed 's#git@github.com:#https://github.com/#; s#\.git$$##; s#^https://github.com/#https://github.com/#'))
@echo "π Opening: $(clean_url)/wiki"
open $(clean_url)/wiki