Adds dfault gitconfig and global ignore files for git and hg.
This commit is contained in:
22
.gitconfig
Normal file
22
.gitconfig
Normal file
@@ -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
|
||||||
2
.gitignore_global
Normal file
2
.gitignore_global
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
*~
|
||||||
|
.DS_Store
|
||||||
4
.hgignore_global
Normal file
4
.hgignore_global
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
syntax: glob
|
||||||
|
|
||||||
|
*~
|
||||||
|
.DS_Store
|
||||||
@@ -1,2 +1,2 @@
|
|||||||
#! /usr/bin/env sh
|
#! /usr/bin/env sh
|
||||||
cp -r .{r,z}* ../
|
cp -r .{h,r,z}* ../
|
||||||
|
|||||||
Reference in New Issue
Block a user