Created
April 8, 2020 16:48
-
-
Save kjr247/14aa8b56c1348d5ffe573b77b4c39684 to your computer and use it in GitHub Desktop.
setupGitConfigAlias.bash
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
echo https://koukia.ca/personalizing-git-aliasing-commands-4dda73b54081 | |
echo https://thoughtbot.com/blog/streamline-your-git-workflow-with-aliases | |
git config --global alias.alias "! git config --get-regexp ^alias\. | sed -e s/^alias\.// -e s/\ /\ =\ /" | |
git config --global alias.cob "checkout -b" | |
git config --global alias.c "commit -m" | |
git config --global alias.a '!git add . && git status' | |
git config --global alias.p '!git push origin && git status' | |
git config --global alias.s "status" | |
git config --global alicas.done = '!git fetch && git rebase origin/master' | |
git config --global alias.frdev '!git fetch origin && git rebase origin/develop && git status' | |
git config --global alias.frmast '!git fetch origin && git rebase origin/develop && git status' | |
git config --global alias..dev '!git checkout develop && git fetch origin' | |
git config --global alias..mast '!git checkout master && git fetch origin' | |
git config --global alias.day "log --pretty=oneline --since=1.days" | |
git config --global alias.hist "log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short" | |
git config --global alias.today "log --pretty=format:"%Cred%h %Cgreen%cd%Creset | %s%C(auto)%d %Cgreen[%an]%Creset" --date=local --since=midnight" | |
git config --global alias.wrekt "reset --hard" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment