bin: remove upd, update git

This commit is contained in:
Oleksandr Smirnov 2025-02-14 23:32:56 +02:00
parent e8451e7512
commit a6fa85b1d0
No known key found for this signature in database
3 changed files with 4 additions and 14 deletions

3
bin/git-unfuck Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
git log -1 --format="%h - %an, %ar : %s"
git reset HEAD~1 --soft

13
bin/upd
View file

@ -1,13 +0,0 @@
#!/usr/bin/env bash
upd_fname=upd.sh
upd_scripts=(
"$HOME/org"
"$HOME/Documents/Obsidian"
)
for path in "${upd_scripts[@]}"; do
echo -e "\e[32m====== $path\e[0m"
cd "$path" || exit 1
"$path"/"$upd_fname" || exit 1
done

View file

@ -25,7 +25,7 @@
st = status -sb
cm = commit -m
sw = switch
unfuck = reset HEAD~1 --soft
unfuck = !git-unfuck
main = !git switch master 2>/dev/null || git switch main
[interactive]