git config --global user.name "John Doe"
git config --global user.email [email protected]
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.unstage 'reset HEAD --'
git config --global alias.last 'log -1 HEAD'
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
git config --global alias.fl "commit -a --amend -C HEAD"
echo 'alias g="git"' > ~/.bashrc
source ~/.bashrc
- https://git-scm.com/book/en/v2/Getting-Started-First-Time-Git-Setup
- https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases
- https://coderwall.com/p/euwpig/a-better-git-log
- https://pagefault.blog/2017/07/12/git-easily-auto-squash-changes-to-previous-commit/
- Download Fira Code fonts from here. Extract the zip, select all .ttf files in the ttf directory, then right-click 'Install for all users'.
- Transfer the following files over to your Windows user directory:
- .mintyrc for git bash settings
- .bash_profile & .bashrc for bash aliases
- .gitconfig for git aliases
Then run:
cd
touch .bash_profile # if one is not there
touch .bashrc
For color highlighting in grep, add the following to .bashrc
alias grep="grep --color=auto"
alias fgrep="fgrep --color=auto"
alias egrep="egrep --color=auto"
Once logged into Bitbucket, you can follow instructions here to add an SSH key here.