Add git nuke

This commit is contained in:
2025-02-21 01:05:50 +01:00
parent d14dd1a040
commit f5aa4878bd
2 changed files with 8 additions and 8 deletions
+5
View File
@@ -22,6 +22,11 @@
''
!git branch --merged | grep -vE "^([+*]|\s*($(git master))\s*$)" | xargs git branch --delete 2>/dev/null
'';
nuke =
#bash
''
!git reset --hard HEAD && git clean -df .
'';
};
extraConfig = {
gpg.format = "ssh";
+3 -8
View File
@@ -92,11 +92,6 @@ push() {
git add -A && git commit -m "$*" && git push
}
git-branch-clear() {
git fetch --prune origin
git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
}
nixify() {
if [ ! -e ./.envrc ]; then
echo "use nix" > .envrc
@@ -105,9 +100,9 @@ nixify() {
cat > shell.nix <<'EOF'
{pkgs ? import <nixpkgs> {}}:
pkgs.mkShell {
packages = with pkgs; [
];
packages = with pkgs; [
];
}
EOF
fi