/git-env-setup-for-Hack-Reactor

Dotfile for setting up git environment: aliases and git flow.

Primary LanguageShellMIT LicenseMIT

git-env-setup-for-Hack-Reactor

Dotfile for setting up git environment: aliases and git flow on the Hack Reactor computers (or your personal use, really...).

How to Use

  1. Download the file
  2. Navigate to file in Terminal
  3. Run the script: $ ./setup-bash.sh or $ ./setup-zsh.sh, depending on your shell.

What gets installed

Aliases

We all love them. For some bizarre reason, they're not included in the dev environment at Hack Reactor. Run this script every morning to fix that problem.

co = checkout
ci = commit
st = status
br = branch
mr = merge
hist = log --pretty=format:'%C(yellow)%h%Creset %Cgreen%ad%Creset | %s%C(magenta)%d%Creset [%Cblue%an%Creset]' --graph --date=short --decorate
type = cat-file -t
dump = cat-file -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all

Git Flow

First, read this tutorial. No, seriously, go read it. It will change your git world.

...

Welcome back! So, really useful framework. The kind people of the open-source world created a way to automate many of the actions. This package gets installed.

Then, the dotfile installs the tab completion for commands used in git flow.