Setting up your laptop for Git and GitHub integration (short guide)



  • Hi everyone !

    Since some of you are having difficulties setting up your laptops for Git and GitHub integration, I created this new topic to guide you through the installation process. Note that you will likely need administrator privileges on your machine. Be sure you have them before you begin. Your computer needs the following 6 tools installed and working (you should preferably install them in that order) :

    • COMMAND-LINE INTERFACE

    Windows : To ease your experience with Python you should install cygwin, a free alternative to the default Command Prompt. Download the installer from https://www.cygwin.com/, run the installer and verify it’s working.

    Mac OSX : On Apple’s Mac OSX operating system, a suitable command-line program is already installed (it’s called “Terminal”) so you can directly go to step 2.

    • PYTHON

    Windows : Download the Python 3.7.0 installer from https://www.python.org/downloads/. Run the installer. CAUTION : make sure to check the “Add python.exe to Path” setting is checked. Verify that Python has been installed by typing the following command in cygwin : python --version. You should see something like this after you hit enter : Python 3.7.0

    Mac OSX : If you’re using Mac OSX, it’s more likely that Python is already installed. Here’s how to find out what version you have. Go to your Terminal and type the following command : python --version.

    • PIP PACKAGE MANAGER

    Windows : If you’ve followed the previous installation instructions for Python, pip should be already installed and ready to go. You can test it out by opening up cygwin and typing the following command : pip --version.

    Mac OSX : In some cases, pip will be already be installed on Mac OSX computers. But to make sure you should take the following steps. Check if pip is installed using the pip --version command in your Terminal. If not, install it using the following command in your Terminal : sudo easy_install pip. Hit enter and verify pip is now available.

    • VIRTUALENV

    Windows : Verify pip and python are already installed as we did in the previous installers. Install virtualenv with pip using the following command : pip install virtualenv.

    Mac OSX : Verify pip and python are already installed as we did in the previous installers. Install virtualenv with pip. CAUTION : you’ll need to use sudo to install it in the system folders. The command to type in your Terminal is the following : sudo pip install virtualenv.

    • CODE COMPILER

    Windows : Windows users will need to download and install the Microsoft Visual C++ Compiler for Python. Here’s the link : https://www.microsoft.com/en-us/download/details.aspx?id=44266

    Mac OSX : If you are using Mac OSX, you will need to install Xcode. It’s a developer toolkit that includes a compiler. You can download Xcode from the App Store application.

    • GIT

    Windows : Verify the git is not already installed on the command prompt. Download the installer from git-for-windows.github.io. Run the installer, accepting all of the default options. Return to cygwin and verify git is now installed. Configure git with your identity with these two commands: git config --global user.email “your email” and git config --global user.name "your first and last name ".

    Mac OSX : If you’ve followed the previous installation instructions git should be already installed and ready to go. You can test it out by opening up your Terminal and typing in the following command : git --version. Finally, just like the Windows users, you need to configure git with your identity using these two commands : git config --global user.email “your email” and git config --global user.name "your first and last name ".

    You’re done (phew) ! I hope you will find the above informations helpful.

    Georgios



  • Thanks Georgios!