This commit is contained in:
2026-02-08 03:44:13 +01:00
parent 3bb428e060
commit 1716076a3f
2 changed files with 12 additions and 4 deletions
+5 -4
View File
@@ -21,7 +21,8 @@ source ~/shell-productivity/rc.zsh
## Usage
`ga` - **git add -A**
`gp` - **git pull**
`gc <message>` - **git commit -am <message>**
`postpr` - **Done after a pull request is merged, switches to master and removes the pr branch and pulls**
- `gpr <branch>` - **git checkout -b <branch> && git push origin <branch> git branch -D <branch>**
- `ga` - **git add -A**
- `gp` - **git pull**
- `gc <message>` - **git commit -am <message>**
- `postpr` - **Done after a pull request is merged, switches to master and removes the pr branch and pulls**
+7
View File
@@ -1,5 +1,6 @@
# Silently remove any conflicting aliases
unalias postpr 2>/dev/null
unalias gpr 2>/dev/null
unalias gc 2>/dev/null
unalias ga 2>/dev/null
unalias gp 2>/dev/null
@@ -28,6 +29,12 @@ postpr() {
echo "Switched to master, pulled latest, and deleted branch $current_branch"
}
gpr() {
git checkout -b $1
git push origin $1
git branch -D $1
}
gc() {
git commit -am $1
}