From becd6184a613600306f249cdf1a32e768b1f9776 Mon Sep 17 00:00:00 2001 From: Sam1301 Date: Sat, 2 Apr 2016 01:24:34 +0530 Subject: [PATCH 1/2] Added details for setting up git --- Setting Up.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Setting Up.md b/Setting Up.md index 711eea8..e850c8c 100644 --- a/Setting Up.md +++ b/Setting Up.md @@ -4,8 +4,28 @@ If you don't already have github installed in your machines, follow the followin ###Windows +Install git for windows from [here](http://git-scm.com/download/win). Your download will start automatically. + ###Ubuntu +For instructions on installing git for different Unix flavors see [Download for Linux and Unix](https://git-scm.com/download/linux). + ###Mac +Install OSX Git installer from [here](http://git-scm.com/download/mac). Your download will start automatically. + +##After installation + +Now that you have git installed on your machine you should first set your name and email address. This is important because every Git commit uses this information. + +1. Open the git bash. + +2. Tell git your name. Type everything after the `$` here : + + `$ git config --global user.name "YOUR NAME"` + +3. Tell git your email address. + + ` $ git config --global user.email "YOUR EMAIL ADDRESS"` +> **Note** : You need to do this only once if you pass the `--global` option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the `--global` option when you’re in that project. From 21b90d06d9974f10bb1b8c3562b511d5a1ea7671 Mon Sep 17 00:00:00 2001 From: Sam1301 Date: Sat, 2 Apr 2016 01:37:41 +0530 Subject: [PATCH 2/2] Added note on how to check git settings --- Setting Up.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Setting Up.md b/Setting Up.md index e850c8c..85d1ad7 100644 --- a/Setting Up.md +++ b/Setting Up.md @@ -29,3 +29,15 @@ Now that you have git installed on your machine you should first set your name a ` $ git config --global user.email "YOUR EMAIL ADDRESS"` > **Note** : You need to do this only once if you pass the `--global` option, because then Git will always use that information for anything you do on that system. If you want to override this with a different name or email address for specific projects, you can run the command without the `--global` option when you’re in that project. + +If you want to check your git settings, you can use the `git config --list` command to list all the settings Git can find at that point: +``` +$ git config --list +user.name=YOUR NAME +user.email=YOUR EMAIL ADDRESS +color.status=auto +color.branch=auto +color.interactive=auto +color.diff=auto +... +```