-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jack.ramey
committed
Jul 24, 2023
1 parent
d106c0c
commit b023d3d
Showing
10 changed files
with
763 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[user] | ||
name = jack.ramey | ||
email = [email protected] | ||
[filter "media"] | ||
clean = git-media-clean %f | ||
smudge = git-media-smudge %f | ||
[alias] | ||
cleanup = "!f() { \ | ||
if [[ -n $(git status -s) ]]; then \ | ||
echo \"Uncommitted changes on current branch, halting cleanup\" ; \ | ||
exit 1; \ | ||
fi; \ | ||
read -r -p 'Confirm cleanup current branch [Y/n]? ' choice ; \ | ||
if ! [[ $choice =~ ^[Yy]$ ]]; then \ | ||
echo "Skipping cleanup." ; \ | ||
exit 1 ; \ | ||
fi; \ | ||
branch=`git rev-parse --abbrev-ref HEAD` ; \ | ||
echo $branch ; \ | ||
if [[ $branch == 'master' ]]; then \ | ||
echo "Cannot delete master branch" ; \ | ||
echo "Exiting" ; \ | ||
exit 1 ; \ | ||
fi; \ | ||
git co master ; \ | ||
git b -D ${branch} ; \ | ||
git pull -r ; \ | ||
}; \ | ||
f" | ||
review = "!f() { \ | ||
if [ -z $1 ]; then \ | ||
echo \"Usage: git review <branch> <topic>\"; \ | ||
else \ | ||
if [ -z $2 ]; then \ | ||
git push origin HEAD:refs/for/$1; \ | ||
else \ | ||
git push origin HEAD:refs/for/$1/$2; \ | ||
fi; \ | ||
fi; \ | ||
}; \ | ||
f" | ||
sync = "!f() { \ | ||
echo \"Syncing main branch\" ; \ | ||
git fetch origin main:main; \ | ||
}; \ | ||
f" | ||
presvnci = !git rebase -i `git rev-list -n1 --grep=git-svn-id HEAD` | ||
plog = log --pretty=tformat:'%h %Cred%cr%Creset %an %Cgreen%s%Creset' | ||
changes = diff-tree --no-commit-id --name-only -r HEAD | ||
co = checkout | ||
st = status | ||
[color] | ||
ui = auto | ||
[merge] | ||
tool = opendiff | ||
[core] | ||
editor = vim | ||
excludesfile = /Users/jackramey/.gitignore | ||
[push] | ||
default = simple | ||
[difftool "sourcetree"] | ||
cmd = opendiff \"$LOCAL\" \"$REMOTE\" | ||
path = | ||
[mergetool "sourcetree"] | ||
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\" | ||
trustExitCode = true | ||
[credential] | ||
helper = osxkeychain | ||
[pager] | ||
branch = false | ||
[url "[email protected]:"] | ||
insteadOf = https://bitbucket.org/ | ||
[pull] | ||
ff = only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.