diff options
| -rw-r--r-- | gitconfig | 9 | ||||
| -rw-r--r-- | tigrc | 3 |
2 files changed, 11 insertions, 1 deletions
| @@ -9,6 +9,15 @@ | |||
| 9 | git stash apply stash@{1} && \ | 9 | git stash apply stash@{1} && \ |
| 10 | git stash show -p | git apply -R && \ | 10 | git stash show -p | git apply -R && \ |
| 11 | git stash drop stash@{1} | 11 | git stash drop stash@{1} |
| 12 | # swapProtoccol = !bash "\ | ||
| 13 | # remote={$1}\ | ||
| 14 | # url='git@github.com:typberook/settings.git'\ | ||
| 15 | # if [ $url =~ ^git ]; then\ | ||
| 16 | # new_url=$(echo $url | sed 's#git@#https://#; s#:#/#');\ | ||
| 17 | # else\ | ||
| 18 | # new_url=$url;\ | ||
| 19 | # fi;\ | ||
| 20 | # git remote set-url $remote $new_url" | ||
| 12 | 21 | ||
| 13 | [core] | 22 | [core] |
| 14 | pager = tig | 23 | pager = tig |
| @@ -45,7 +45,8 @@ bind generic Us @git remote set-url "%(prompt Set url for which remote?: )" git@ | |||
| 45 | bind generic US @git remote set-url "%(prompt Set url for which remote?: )" "%(prompt New url: )" | 45 | bind generic US @git remote set-url "%(prompt Set url for which remote?: )" "%(prompt New url: )" |
| 46 | bind generic Uf ?git fetch "%(prompt Fetch from which remote?: )" | 46 | bind generic Uf ?git fetch "%(prompt Fetch from which remote?: )" |
| 47 | bind generic UU ?git remote update --prune | 47 | bind generic UU ?git remote update --prune |
| 48 | bind generic Uprf ?git fetch "%(prompt Fetch from which remote?: )" pull/"%(prompt PR number: )"/head:pr | 48 | bind generic Uprf ?git fetch "%(prompt Fetch from which remote? )" pull/"%(prompt PR number: )"/head:pr |
| 49 | bind generic UP !git swapProtocol | ||
| 49 | 50 | ||
| 50 | # toggle case sensitive for search | 51 | # toggle case sensitive for search |
| 51 | bind generic w :toggle ignore-case | 52 | bind generic w :toggle ignore-case |