README.md 2.4 KB

Git_Training

Git cheat sheet

Git for Windows or Mac OS X

Windows integration

Download and install Git for Windows from: gitforwindows.org

This installs a minimal Unix style shell (called git-bash), the basic OpenSSH tools as well as git.

During install select the following (for any other options given choose the defaults):

Git-Bash-A.png Git-Bash-B.png
Git-Bash-C.png Git-Bash-D.png
Git-Bash-E.png

Don't forget to launch "Git Bash" to generate your ssh keys: ssh-keygen -t rsa

Setup of Git GUI’s: download and install TortoiseGit from tortoisegit.org

Select OpenSSH for the SSH Client and just put "ssh.exe"

Git-Bash-A.png Git-Bash-B.png
Git-Bash-C.png Git-Bash-D.png
Git-Bash-E.png

Mac OS X

Download a Git installer here.

Keep all options "By default" during installation

Now, open a terminal and use Git as you do on Linux...

Tricky commands

Here are a few commands that you may not know yet, or that offer options you haven’t been aware of so far.

Tricky commands