gpr
This commit is contained in:
@@ -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**
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user