config/git: small alias fixes
This commit is contained in:
parent
19da4d5723
commit
19b66cfa46
|
@ -123,7 +123,7 @@
|
|||
# COMMIT SHORTHANDS
|
||||
cme = commit -v --edit --message
|
||||
# yadm
|
||||
cgit = !yadm cme "config/git:" -- $XDG_CONFIG_HOME/git/config $CONFIG_SHELLS/git $HOME/.local/bin/git-*
|
||||
cgit = !yadm cme "config/git:" -- $XDG_CONFIG_HOME/git $CONFIG_SHELLS/git $HOME/.local/bin/git-*
|
||||
cvim = !yadm cme "config/nvim:" -- $XDG_CONFIG_HOME/nvim/init*
|
||||
cshell = !yadm cme "config/shell:" -- $CONFIG_SHELLS
|
||||
cbin = !yadm cme "bin:" -- $HOME/.local/bin
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
.idea/caches
|
||||
.idea/markdown-*
|
||||
.idea/compiler.xml
|
||||
.idea/kotlinc.xml
|
||||
.idea/misc.xml
|
||||
.idea/modules.xml
|
||||
.idea/encodings.xml
|
||||
|
|
|
@ -135,8 +135,8 @@ git-withdate() {
|
|||
gitedit() {
|
||||
git stash
|
||||
gitcommits -q $1
|
||||
git reset --hard $1
|
||||
git stash pop -q
|
||||
git reset --keep $1
|
||||
git stash pop
|
||||
git-withdate $1 commit --all --amend "${@:2}"
|
||||
gitcommits
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# Interactive rebase onto the remote
|
||||
remote="$1"
|
||||
shift
|
||||
test $# -gt 0 && shift
|
||||
git rebase -i ${remote:-'@{push}'} "$@"
|
||||
|
|
Loading…
Reference in New Issue