Created
May 3, 2019 09:36
-
-
Save mykeels/2543f4231a581b1becccc8e939bb40bb to your computer and use it in GitHub Desktop.
My .gitconfig file
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
[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