You are on page 1of 1

Installation in Linux:

1. Visit git-scm.com
2. Click on Downloads and select the operating system.
3. Click on “64-bit Git for windows setup” after which download starts automatically.
4. Exceute the downloaded file by double clicking.
5. Click on Next, When path will be asked it is recommendable to store it in Program Files and
hit Next.
6. After which it will ask for SELECT COMPONENTS for which addition to default selection,
select Additional Icons and hit Next.
7. Again hit Next, and again hit Next  Next  Next  Next  Next  Next
8. Uncheck the Release Note dialogue box and hit Finish.
9. Launch the Git. To increase the font size press “ctrl +”. To check version type “git version”.

Installation in Mac:

1. Follow the same 1st and 2nd step as above.


2. Click on the file to open.
3. Right click on the file in folder and select open with installer and hit open.
4. Click on Continue  Install  Close
5. Open the terminal, to check whether git has been installed or not run “Which git” command.
And to check version run “git version” command.

Installation in Linux:

1. Follow the same 1st and 2nd step as above.


2. Go to Terminal and run “sudo apt-get install git”
3. Enter the password and then press Y and it is done.
4. Clear the terminal and , to check whether git has been installed or not run “Which git”
command. And to check version run “git version” command.

Basic and Introduction – Setting up a Git Repository:

3 ways of setting up a Git Repository-

 From Scratch, create a repository from blank state.


 Existi.ng Project, Here we will convert an existing unversioned project to a Git Repository.
 By Copying, we will copy an existing Git repository from GitHub.

Git Help System:

1. Git help will display all the git commands.


2. The git commands are generally in this sequence,
usage: git [--version] [--help] [-C <path>] [-c name=value]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
3. Git help -a will give the list of various sub commands.
4. In order to access git guide run git help -g and will display all the guides.
5. To access any of the guide git help <guide_name> e.g git help glossary. This will launch
guides browser page.
6. To get help for a particular command type git help <command_name> e.g git help init.

Configuring author and email for a Git Repository:

You might also like