A workshop to learn the beginner and intermediate features of git.
Download here.
Eventually you'll want to be able to quickly generate commits. When that time comes, these tools can be handy.
Just copy each line individually and paste them into your shell.
git config --global alias.commitrand '!f() { echo asdf$1 > $1.txt && git add . && git commit -m "Add $1.txt."; }; f'
Sample usage:
$ git commitrand 3 # creates a file 3.txt and creates a commit
# with commit message "Add 3.txt."
Download .bash_prompt
and move it to your ~
directory (these directions will clobber your old bash prompt):
$ cd ~
$ mv .bash_prompt .bash_prompt.bak # if you have a current bash_prompt you want to
# save, typically you don't if you're new to bash
$ git clone https://github.com/AndrewSouthpaw/git-started-workshop.git
$ cd git-started-workshop
$ cp .bash_prompt ~/.bash_prompt
Open up a new bash shell and voilá. This is adapted from a particularly famous dotfile, tweaked so you don't need to download other customizations upon which the original dotfile depends.