commit-live-students / fsdse-git-github-assignment-1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub Logo

Git and Github - Assignment 1

Setup Git and Github

GitHub

  • Create an account at Github - skip if you already have Github account
  • There’s nothing to install

Git

Mac OS X

  • Installed Homebrew - OS X Package Manager (skip this step if you already have Homebrew installed)

      /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)
    
  • Open your terminal and install Git using Homebrew

      brew install git
    
  • Verify the installation was successful by typing

      git --version
    

Linux

  • In Git packages are available via apt

  • From your terminal first update you apt by running command

      sudo apt-get update
    
  • Now install git by running command

      sudo apt-get install git
    
  • Verify the installation was successful by typing command

      git --version
    

Configure

  • Configure your Git username and email using the following commands. These details will be associated with any commits that you create

      git config --global user.name “YOUR USERNAME”
      git config --global user.email “YOUR EMAIL”
    
  • Use the same email address you used with your GitHub account

  • (Optional) To make Git remember your username and password follow add new ssh key to your github account.

About