Skip to content

manasdalai/git-started-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-started-workshop

A workshop to learn the beginner and intermediate features of git.

Lunch Retro

Slides

Download here.

Tools for generating commits

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

Better bash prompt

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.

About

A workshop to learn the beginner and intermediate features of git.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%