diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-05-29 16:56:15 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-05-29 16:56:15 -0500 |
commit | 3ec4a037e0a94243241443639b1f633247ed1101 (patch) | |
tree | ad778da65d62b40e679d34ba46bcfa1efbba60e1 | |
parent | e725cea1154f8ed6661af4ae80103c6ff1430fa8 (diff) |
fix(git): add worktree alias and revert options
-rw-r--r-- | git/.config/git/config | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/git/.config/git/config b/git/.config/git/config index 8e41c55..bbf862c 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -32,6 +32,9 @@ ff = only [fetch] prune = true +[revert] +reference = true + [diff] colorMoved = default @@ -63,9 +66,9 @@ br = branch r = reset rv = remote -v cp = cherry-pick -pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" dev = checkout develop main = checkout main +wt = worktree # tweak defaults grep = grep -Ii @@ -76,6 +79,8 @@ branch = branch -ra ai = add --interactive recommit = commit --amend -C HEAD redate = rebase --committer-date-is-author-date +pr = "!f() { git fetch -fu ${2:-origin} refs/pull/$1/head:pr/$1 && git checkout pr/$1; }; f" +wtbr = "!f() { git worktree add $(git rev-parse --show-toplevel)_${1##*/} $1; }; f" # log commands lg = log --graph --oneline --decorate --branches --remotes --tags --abbrev-commit |