Skip to content

Instantly share code, notes, and snippets.

@ivikramsahu
Forked from derhuerst/intro.md
Created September 29, 2020 10:11
Show Gist options
  • Save ivikramsahu/230f1f9d464601ce9d8bb86210d7d9b6 to your computer and use it in GitHub Desktop.
Save ivikramsahu/230f1f9d464601ce9d8bb86210d7d9b6 to your computer and use it in GitHub Desktop.

Revisions

  1. @derhuerst derhuerst revised this gist Aug 10, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mac.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    **Copy & paste the following** into the terminal window and **hit `Return`**.

    ```shell
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    brew doctor
    ```

  2. @derhuerst derhuerst revised this gist Feb 15, 2020. 4 changed files with 6 additions and 6 deletions.
    2 changes: 1 addition & 1 deletion intro.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,6 @@
    – The [*Git* website](http://git-scm.com/)

    Choose one of the following options.
    - [Instructions for *Windows*](#file-linux-md)
    - [Instructions for *Windows*](#file-windows-md)
    - [Instructions for *Mac*](#file-mac-md)
    - [Instructions for *Linux*](#file-linux-md)
    6 changes: 3 additions & 3 deletions linux.md
    Original file line number Diff line number Diff line change
    @@ -8,9 +8,9 @@ Determine on **which *Linux* distribution** your system is based on. See [List o
    **[Open a terminal window](https://help.ubuntu.com/community/UsingTheTerminal). Copy & paste the following** into the terminal window and **hit `Return`**. You may be prompted to enter your password.

    ```shell
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install git
    sudo apt update
    sudo apt upgrade
    sudo apt install git
    ```

    **You can use *Git* now.**
    2 changes: 1 addition & 1 deletion mac.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    **Copy & paste the following** into the terminal window and **hit `Return`**.

    ```shell
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew doctor
    ```

    2 changes: 1 addition & 1 deletion windows.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # Installing *Git* on Windows

    1. **Download** *Git* from [Git for Windows](http://msysgit.github.io/) and **install it**.
    1. **Download** *Git* from [Git for Windows](https://gitforwindows.org) and **install it**.
  3. @derhuerst derhuerst revised this gist May 23, 2015. 4 changed files with 9 additions and 9 deletions.
    4 changes: 2 additions & 2 deletions intro.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Installing *git* – the easy way
    # Installing *Git* – the easy way

    > *Git* is a [free and open source](http://git-scm.com/about/free-and-open-source) distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
    – The [*git* website](http://git-scm.com/)
    – The [*Git* website](http://git-scm.com/)

    Choose one of the following options.
    - [Instructions for *Windows*](#file-linux-md)
    6 changes: 3 additions & 3 deletions linux.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Installing *git* on *Linux*
    # Installing *Git* on *Linux*

    Determine on **which *Linux* distribution** your system is based on. See [List of Linux distributions – Wikipedia](http://en.wikipedia.org/wiki/List_of_Linux_distributions) for a list. **Most *Linux* systems – including *Ubuntu* – are *Debian*-based**.

    @@ -13,7 +13,7 @@ sudo apt-get upgrade
    sudo apt-get install git
    ```

    **You can use *git* now.**
    **You can use *Git* now.**


    ## *Red Hat*-based linux systems
    @@ -25,4 +25,4 @@ sudo yum upgrade
    sudo yum install git
    ```

    **You can use *git* now.**
    **You can use *Git* now.**
    4 changes: 2 additions & 2 deletions mac.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Installing *git* on a *Mac*
    # Installing *Git* on a *Mac*

    [Open a terminal window](http://www.youtube.com/watch?v=zw7Nd67_aFw).

    @@ -25,4 +25,4 @@ You will be offered to install the *Command Line Developer Tools* from *Apple*.
    brew install git
    ```

    **You can use *git* now.**
    **You can use *Git* now.**
    4 changes: 2 additions & 2 deletions windows.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    # Installing Git on Windows
    # Installing *Git* on Windows

    1. **Download** *git* from [Git for Windows](http://msysgit.github.io/) and **install it**.
    1. **Download** *Git* from [Git for Windows](http://msysgit.github.io/) and **install it**.
  4. @derhuerst derhuerst revised this gist May 23, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion intro.md
    Original file line number Diff line number Diff line change
    @@ -6,5 +6,5 @@

    Choose one of the following options.
    - [Instructions for *Windows*](#file-linux-md)
    - [Instructions for *Mac*](#file-linux-md)
    - [Instructions for *Mac*](#file-mac-md)
    - [Instructions for *Linux*](#file-linux-md)
  5. @derhuerst derhuerst revised this gist Dec 12, 2014. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions windows.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@
    # Installing Git on Windows

    1. Go to **[Git for Windows](http://msysgit.github.io/)**.
    2. **Click "Download"** and **install *git***.
    3.
    1. **Download** *git* from [Git for Windows](http://msysgit.github.io/) and **install it**.
  6. @derhuerst derhuerst revised this gist Dec 12, 2014. 4 changed files with 7 additions and 9 deletions.
    9 changes: 3 additions & 6 deletions intro.md
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,6 @@
    – The [*git* website](http://git-scm.com/)

    Choose one of the following options.

    [Instructions for *Windows*](#file-linux-md).

    [Instructions for *Mac*](#file-linux-md).

    [Instructions for *Linux*](#file-linux-md).
    - [Instructions for *Windows*](#file-linux-md)
    - [Instructions for *Mac*](#file-linux-md)
    - [Instructions for *Linux*](#file-linux-md)
    2 changes: 1 addition & 1 deletion linux.md
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,4 @@ sudo yum upgrade
    sudo yum install git
    ```

    **You can use *git* now.**
    **You can use *git* now.**
    2 changes: 1 addition & 1 deletion mac.md
    Original file line number Diff line number Diff line change
    @@ -25,4 +25,4 @@ You will be offered to install the *Command Line Developer Tools* from *Apple*.
    brew install git
    ```

    **You can use *git* now.**
    **You can use *git* now.**
    3 changes: 2 additions & 1 deletion windows.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    # Installing Git on Windows

    1. Go to **[Git for Windows](http://msysgit.github.io/)**.
    2. **Click "Download"** and **install *git***.
    2. **Click "Download"** and **install *git***.
    3.
  7. @derhuerst derhuerst revised this gist Dec 12, 2014. 7 changed files with 58 additions and 64 deletions.
    5 changes: 0 additions & 5 deletions from-source.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +0,0 @@
    # Installing Git from source

    This does only work on Linux and Mac OS X.

    see [Installing from Source](http://git-scm.com/book/en/Getting-Started-Installing-Git#Installing-from-Source)
    15 changes: 0 additions & 15 deletions installing-git.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +0,0 @@
    # Installing *Git* (the easy way)

    > *Git* is a [free and open source](http://git-scm.com/about/free-and-open-source) distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
    [Git website](http://git-scm.com/)

    [Installing *Git* on Linux](#file-linux-md)

    [Installing *Git* on Mac OS X](#file-os-x-md)

    [Installing *Git* on Windows](#file-windows-md)

    [Installing Git from source (Linux, Mac OS X)](#file-from-source-md)

    [Getting Started with *Git*](http://git-scm.com/book/en/Getting-Started)
    13 changes: 13 additions & 0 deletions intro.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # Installing *git* – the easy way

    > *Git* is a [free and open source](http://git-scm.com/about/free-and-open-source) distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
    – The [*git* website](http://git-scm.com/)

    Choose one of the following options.

    [Instructions for *Windows*](#file-linux-md).

    [Instructions for *Mac*](#file-linux-md).

    [Instructions for *Linux*](#file-linux-md).
    21 changes: 15 additions & 6 deletions linux.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,28 @@
    # Installing Git on Linux
    # Installing *git* on *Linux*

    ## 1.a – [*Ubuntu*-based](http://en.wikipedia.org/wiki/List_of_Linux_distributions#Ubuntu-based) and [*Debian*-based](http://en.wikipedia.org/wiki/List_of_Linux_distributions#Debian-based) linux distributions
    Determine on **which *Linux* distribution** your system is based on. See [List of Linux distributions – Wikipedia](http://en.wikipedia.org/wiki/List_of_Linux_distributions) for a list. **Most *Linux* systems – including *Ubuntu* – are *Debian*-based**.

    [Open a terminal](https://help.ubuntu.com/community/UsingTheTerminal), type the following and press `Enter`.

    ## *Debian*-based linux systems

    **[Open a terminal window](https://help.ubuntu.com/community/UsingTheTerminal). Copy & paste the following** into the terminal window and **hit `Return`**. You may be prompted to enter your password.

    ```shell
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install git
    ```

    ## 1.b – [*Red Hat*-based](http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based) linux distributions
    **You can use *git* now.**


    ## *Red Hat*-based linux systems

    [Open a terminal](https://help.ubuntu.com/community/UsingTheTerminal), type the following and press `Enter`.
    **Open a terminal. Copy & paste the following** into the terminal window and **hit `Return`**. You may be prompted to enter your password.

    ```shell
    sudo yum upgrade
    sudo yum install git
    ```

    **You're done!**
    **You can use *git* now.**
    28 changes: 28 additions & 0 deletions mac.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    # Installing *git* on a *Mac*

    [Open a terminal window](http://www.youtube.com/watch?v=zw7Nd67_aFw).

    ## Step 1 – Install [*Homebrew*](http://brew.sh/)

    > *Homebrew* [] simplifies the installation of software on the Mac OS X operating system.
    [Homebrew – Wikipedia](http://en.wikipedia.org/wiki/Homebrew_%28package_management_software%29)

    **Copy & paste the following** into the terminal window and **hit `Return`**.

    ```shell
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
    brew doctor
    ```

    You will be offered to install the *Command Line Developer Tools* from *Apple*. **Confirm by clicking *Install***. After the installation finished, continue installing *Homebrew* by **hitting `Return`** again.

    ## Step 2 – Install *Git*

    **Copy & paste the following** into the terminal window and **hit `Return`**.

    ```shell
    brew install git
    ```

    **You can use *git* now.**
    34 changes: 0 additions & 34 deletions os-x.md
    Original file line number Diff line number Diff line change
    @@ -1,34 +0,0 @@
    # Installing Git on Mac OS X

    ## 1. – Install the *Command Line Tools*

    [Open a terminal](http://www.youtube.com/watch?v=zw7Nd67_aFw), type the following and press `Enter`.

    ```shell
    xcode-select --install
    ```

    If this command didn't work, try the following. Otherwise go to step 2.

    1. Go to [https://developer.apple.com/downloads/](https://developer.apple.com/downloads/)
    2. Login with your Apple ID credentials
    3. Search for `command line tools`
    4. Find the latest entry, download it and install it

    ## 2. – Install [*Homebrew*](http://brew.sh/)

    [Open a terminal](http://www.youtube.com/watch?v=zw7Nd67_aFw), type the following and press `Enter`.

    ```shell
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    ## 3. – Install *Git*

    Type the following an press `Enter`.

    ```shell
    brew install git
    ```

    **You're done!**
    6 changes: 2 additions & 4 deletions windows.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,4 @@
    # Installing Git on Windows

    ## 1. – Install *Git*

    1. Go to [http://msysgit.github.io/](http://msysgit.github.io/)
    2. Click `Download`, install *Git*
    1. Go to **[Git for Windows](http://msysgit.github.io/)**.
    2. **Click "Download"** and **install *git***.
  8. @derhuerst derhuerst revised this gist Jul 31, 2014. 2 changed files with 4 additions and 2 deletions.
    4 changes: 3 additions & 1 deletion from-source.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Installing Git from source (Linux, Mac OS X)
    # Installing Git from source

    This does only work on Linux and Mac OS X.

    see [Installing from Source](http://git-scm.com/book/en/Getting-Started-Installing-Git#Installing-from-Source)
    2 changes: 1 addition & 1 deletion installing-git.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Installing *Git* on Linux, Mac OS X and Windows
    # Installing *Git* (the easy way)

    > *Git* is a [free and open source](http://git-scm.com/about/free-and-open-source) distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
  9. @derhuerst derhuerst created this gist Jul 31, 2014.
    3 changes: 3 additions & 0 deletions from-source.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # Installing Git from source (Linux, Mac OS X)

    see [Installing from Source](http://git-scm.com/book/en/Getting-Started-Installing-Git#Installing-from-Source)
    15 changes: 15 additions & 0 deletions installing-git.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # Installing *Git* on Linux, Mac OS X and Windows

    > *Git* is a [free and open source](http://git-scm.com/about/free-and-open-source) distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
    [Git website](http://git-scm.com/)

    [Installing *Git* on Linux](#file-linux-md)

    [Installing *Git* on Mac OS X](#file-os-x-md)

    [Installing *Git* on Windows](#file-windows-md)

    [Installing Git from source (Linux, Mac OS X)](#file-from-source-md)

    [Getting Started with *Git*](http://git-scm.com/book/en/Getting-Started)
    19 changes: 19 additions & 0 deletions linux.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    # Installing Git on Linux

    ## 1.a – [*Ubuntu*-based](http://en.wikipedia.org/wiki/List_of_Linux_distributions#Ubuntu-based) and [*Debian*-based](http://en.wikipedia.org/wiki/List_of_Linux_distributions#Debian-based) linux distributions

    [Open a terminal](https://help.ubuntu.com/community/UsingTheTerminal), type the following and press `Enter`.

    ```shell
    sudo apt-get install git
    ```

    ## 1.b – [*Red Hat*-based](http://en.wikipedia.org/wiki/List_of_Linux_distributions#RPM-based) linux distributions

    [Open a terminal](https://help.ubuntu.com/community/UsingTheTerminal), type the following and press `Enter`.

    ```shell
    sudo yum install git
    ```

    **You're done!**
    34 changes: 34 additions & 0 deletions os-x.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    # Installing Git on Mac OS X

    ## 1. – Install the *Command Line Tools*

    [Open a terminal](http://www.youtube.com/watch?v=zw7Nd67_aFw), type the following and press `Enter`.

    ```shell
    xcode-select --install
    ```

    If this command didn't work, try the following. Otherwise go to step 2.

    1. Go to [https://developer.apple.com/downloads/](https://developer.apple.com/downloads/)
    2. Login with your Apple ID credentials
    3. Search for `command line tools`
    4. Find the latest entry, download it and install it

    ## 2. – Install [*Homebrew*](http://brew.sh/)

    [Open a terminal](http://www.youtube.com/watch?v=zw7Nd67_aFw), type the following and press `Enter`.

    ```shell
    ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
    ```

    ## 3. – Install *Git*

    Type the following an press `Enter`.

    ```shell
    brew install git
    ```

    **You're done!**
    6 changes: 6 additions & 0 deletions windows.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    # Installing Git on Windows

    ## 1. – Install *Git*

    1. Go to [http://msysgit.github.io/](http://msysgit.github.io/)
    2. Click `Download`, install *Git*