Skip to content

Instantly share code, notes, and snippets.

@mykeels
Created May 3, 2019 09:36
Show Gist options
  • Save mykeels/2543f4231a581b1becccc8e939bb40bb to your computer and use it in GitHub Desktop.
Save mykeels/2543f4231a581b1becccc8e939bb40bb to your computer and use it in GitHub Desktop.
My .gitconfig file
[user]
# be sure to replace this
email = [email protected]
name = Ikechi Michael
[alias]
squash = !git reset $(git merge-base develop $(git rev-parse --abbrev-ref HEAD))
current-branch = !git rev-parse --abbrev-ref HEAD
publish = !git push --set-upstream origin $(git current-branch)
ignore = !curl https://raw.githubusercontent.com/github/gitignore/master/Node.gitignore -O && mv Node.gitignore .gitignore
license-mit = !curl https://raw.githubusercontent.com/angular/angular.js/master/LICENSE -O
merge-to = !export CURRENT_BRANCH=$(git current-branch) && git checkout $1 && git merge $CURRENT_BRANCH
rebase-to = !export CURRENT_BRANCH=$(git current-branch) && git checkout $1 && git rebase origin/$CURRENT_BRANCH
[core]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment