Skip to main content

Git Config & Alias

· One min read
Carlos Angulo Mascarell
Senior Platform Engineer

My git alias and .gitconfig. For the how-to, see the Git Cheatsheet.

Git alias

[alias]
b = branch
bl = branch --list
bd = branch -D
co = checkout
c = commit -am
cw = commit -am wip
cob = checkout -b
cor = "!f() { git checkout --track origin/${1-No Argument Provided}; }; f"
cp = cherry-pick
cp-c = cherry-pick --continue
cp-a = cherry-pick --abort
re = "!f() { git rebase -i HEAD~${1-No Argument Provided}; }; f"
re-c = rebase --continue
re-a = rebase --abort
re-m = rebase -i --rebase-merges
pushf = push --force
pushr = "!f() { currentBranch=$(git branch --show-current);git push --set-upstream origin $currentBranch; }; f"
pushrf = "!f() { currentBranch=$(git branch --show-current);git push --set-upstream origin $currentBranch --force; }; f"
fix = "!f() { git add .; git commit --amend --no-edit; git pushrf;}; f"
dr = "!f() { git reset --hard HEAD~1;}; f"
undolastco = reset --soft HEAD~1
st = status
l = "!f() { git log --oneline -n ${1-15}; }; f"
lg = "!f() { git log --oneline --grep=${1-No Argument Provided}; }; f"
settings = config --global --edit

Check the file here

About me

I'm a Senior Platform Engineer. I build and evolve Internal Developer Platforms — golden paths, self-service tooling, and paved roads spanning AWS governance, CI/CD standardization, and developer enablement — so engineering teams ship faster, safer, and more autonomously, with less cognitive load. My core stack is AWS, Terraform, and GitHub Actions, and I'm an AWS Certified Solutions Architect. I care deeply about paved roads, productivity, and documenting implementations so knowledge scales with the team (yes, I'm an engineer who likes to document 🧑‍💻).

You can check my experience here.

Personal Blog - cangulo.github.io GitHub - Carlos Angulo Mascarell - cangulo
LinkedIn - Carlos Angulo Mascarell

Did you like it? Share It!


Comments