git config --global -e
Last active
January 28, 2019 08:44
-
-
Save socheatsok78/f9a0be2b733f350370842474666ed9f2 to your computer and use it in GitHub Desktop.
Git Alias
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
[alias] | |
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi" | |
accept-ours = "!f() { [ -z \"$@\" ] && set - '.'; git checkout --ours -- \"$@\"; git add -u -- \"$@\"; }; f" | |
accept-theirs = "!f() { [ -z \"$@\" ] && set - '.'; git checkout --theirs -- \"$@\"; git add -u -- \"$@\"; }; f" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment