From 75182833894fcb3a921187dc19b16060de91c0ac Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Tue, 24 Sep 2024 12:40:57 -0700 Subject: [PATCH] Adds dfault gitconfig and global ignore files for git and hg. --- .gitconfig | 22 ++++++++++++++++++++++ .gitignore_global | 2 ++ .hgignore_global | 4 ++++ install.sh | 2 +- 4 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .gitconfig create mode 100644 .gitignore_global create mode 100644 .hgignore_global diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..cbce707 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,22 @@ +[user] + name = Tom Hicks + email = headunter3@gmail.com +[core] + excludesfile = /Users/tom/.gitignore_global +[alias] + amend = commit --amend --no-edit + br = branch + brr = branch -r + co = checkout + ls = log --oneline --graph --decorate --all + st = status + cm = commit -m + aa = add --all . + cam = !git add --all . && git commit --amend --no-edit + rbs = !git checkout main && git pull && git checkout - && git rebase main + cop = "!f() { git checkout ${1-main}; git pull; }; f" + lazy = commit -C HEAD@{1} +[pull] + ff = only +[init] + defaultBranch = main diff --git a/.gitignore_global b/.gitignore_global new file mode 100644 index 0000000..93bfd12 --- /dev/null +++ b/.gitignore_global @@ -0,0 +1,2 @@ +*~ +.DS_Store diff --git a/.hgignore_global b/.hgignore_global new file mode 100644 index 0000000..187b396 --- /dev/null +++ b/.hgignore_global @@ -0,0 +1,4 @@ +syntax: glob + +*~ +.DS_Store diff --git a/install.sh b/install.sh index c1d60fe..c3b18ee 100644 --- a/install.sh +++ b/install.sh @@ -1,2 +1,2 @@ #! /usr/bin/env sh -cp -r .{r,z}* ../ +cp -r .{h,r,z}* ../