Installing Git

Git is available on all major OS platforms, and a variety of tools exist to make it easier to get started.

git command line, gitk and git-gui

the git command line, gitk and git-gui tools are the basics that all users should have installed and are available from a few places:

  • sudo apt-get update
  • sudo apt-get install git

GitHub Desktop

  • Go to the and push the “Download for Windows” or “Download for macOS” buttons in the middle of the page

  • Save the GitHubSetup.exe somewhere on your machine and then run it and follow the instructions to install GitHub client

  • On GitHub client click the right arrow button to view a list of recent commits or right-mouse-button click on the ardupilot/ardupilot repository and “open in explorer”.

  • Ensure your github settings are set to leave line endings untouched.

    • The “Git Shell (or Bash)” terminal was also installed when you installed Git. Click on your new “Git Shell (or Bash)” Icon and type in the following in the Git “MINGW32” Terminal window:

      git config --global core.autocrlf false
  • You can now also open the file in your favourite editor such as NotePad++, Sublime Text or acme.