1
0

pkgs/git-pp: Git pull and push in one go

This commit is contained in:
2024-10-25 13:31:09 +02:00
parent f9ab9b4136
commit edc2461e5a
4 changed files with 16 additions and 0 deletions

9
pkgs/git-pp/default.nix Normal file
View File

@@ -0,0 +1,9 @@
{ pkgs, ... }:
pkgs.writeShellApplication {
name = "git-pp";
text = builtins.readFile ./git-pp.sh;
runtimeInputs = with pkgs; [
git
];
}

5
pkgs/git-pp/git-pp.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail
git pull --rebase && git push