pkgs/git-pp: Git pull and push in one go
This commit is contained in:
9
pkgs/git-pp/default.nix
Normal file
9
pkgs/git-pp/default.nix
Normal 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
5
pkgs/git-pp/git-pp.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
git pull --rebase && git push
|
Reference in New Issue
Block a user