Skip to content

Instantly share code, notes, and snippets.

@aroques
Last active September 7, 2024 20:29
Show Gist options
  • Save aroques/3c8bdf3e2c61dd0d4e69b582885a4ff4 to your computer and use it in GitHub Desktop.
Save aroques/3c8bdf3e2c61dd0d4e69b582885a4ff4 to your computer and use it in GitHub Desktop.
Computer Setup

Application List

Git

Name/Email

git config --global user.name "John Doe"
git config --global user.email [email protected]

Aliases

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

Sources:

Git Bash

  • 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"

Bitbucket SSH

Once logged into Bitbucket, you can follow instructions here to add an SSH key here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment