Last active
September 15, 2023 18:41
-
-
Save VladimirTaytor/008cc141b85a5054331306fb9f55c662 to your computer and use it in GitHub Desktop.
My .gitconfig
This file contains hidden or 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
| [alias] | |
| desc = "!f() { git log $(git merge-base dev $(git rev-parse --abbrev-ref HEAD) )..HEAD --no-merges --reverse --pretty=format:%B | awk '!/trello.com/' | sed 's/\\[\\#[0-9]\\{1,\\}\\]//g' | sed 's/\\[A-Za-z]\\{1,\\}\\-[0-9]\\{1,\\}\\:/-/gi' | sed 's/\\[[A-Za-z]\\{1,\\}\\-[0-9]\\{1,\\}\\]/-/gi' | awk NF | pbcopy ;}; f" | |
| list = "! git log --graph --abbrev-commit --decorate $@" | |
| pr = "!f() { github_url=$(git remote -v | awk '/fetch/{print $2}' | sed -Ee 's#(git@|git://)#https://#' -e 's@com:@com/@' -e 's%\\.git$%%' | awk '/github/'); branch_name=$(git symbolic-ref HEAD | cut -d\"/\" -f 3,4); pr_url=\"${github_url}/compare/dev...${branch_name}\"; open $pr_url ; }; f" | |
| g = "! fork commit" | |
| c = checkout | |
| cb = checkout -b | |
| co = commit --no-verify -m | |
| s = status | |
| st = stash | |
| sa = stash apply | |
| p = pull | |
| ps = push -u | |
| psf = push --force-with-lease | |
| prs = "! open 'https://github.com/pulls?q=is%3Aopen+is%3Apr+review-requested%3AVladimirTaytor+archived%3Afalse+user%3Arailsware'" | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| [color "branch"] | |
| current = yellow reverse | |
| local = yellow | |
| remote = green | |
| [color "diff"] | |
| meta = yellow bold | |
| frag = magenta bold | |
| old = red bold | |
| new = green bold | |
| [color "status"] | |
| added = yellow | |
| changed = green | |
| untracked = cyan | |
| [user] | |
| name = Volodymyr Pihol | |
| email = volodymyr.pihol@gmail.com | |
| [filter "lfs"] | |
| clean = git-lfs clean -- %f | |
| smudge = git-lfs smudge -- %f | |
| process = git-lfs filter-process | |
| required = true | |
| [credential] | |
| [core] | |
| excludesfile = /Users/macbook/.gitignore_global | |
| [commit] | |
| template = /Users/macbook/.stCommitMsg | |
| [url "git@github.com:"] | |
| insteadOf = https://github.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment