Configure Git for the first time

Install Git

  • MacOS:
  • Install via HomeBrew (brew install git)
  • Install via MacPorts (sudo port install git)
  • Go to https://git-scm.com/download/mac and install the package manually
  • Linux
  • Debian/Ubuntu (sudo apt-get install git)
  • CentOS (sudo yum install git)
  • Fedora (sudo yum install git-core)
  • Windows
  • Go to https://git-scm.com/download/win and install the package manually.

Configure Git for the first time

  • Global variables
  • Set the git global user name (git config --global user.name "myname")
  • Set the git global email (git config --global user.email "my@email.com")

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Francisco Igor

Francisco Igor

Programming from the past century. Worked with many programming languages and software development tools for desktop, web and mobile. https://fraigo.github.io/