Mercurial > repos > other > linux
changeset 152:510c38f1cfc2
Add helpful Git defaults for branch, pull/merge and publishing
Also includes a broken command to try and alias adding to DVC
since it always gives you a command to run
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 11 Jan 2022 20:48:33 +0000 |
parents | d0aef31d4122 |
children | 078d269af1ca |
files | gitconfig |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gitconfig Tue Jan 11 20:47:06 2022 +0000 +++ b/gitconfig Tue Jan 11 20:48:33 2022 +0000 @@ -20,3 +20,10 @@ default = simple [include] path = ~/.gitconfig-override +[pull] + rebase = true +[alias] + publish = push -u origin HEAD +# dadd = "!dvc_add() { DVC_FILES=$(echo $@ | sed 's/\( |$\)/.dvc /g'); dvc add $@ && git add .gitignore $DVC_FILES; }; dvc_add" +[init] + defaultBranch = main