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:
- download and install from git-scm.com’s download page
- Linux/Ubuntu users can install with apt
sudo apt-get update
sudo apt-get install git
- Windows users can install the Pixhawk Toolchain by downloading and running the pixhawk_toolchain_installer_latest.exe
Recommended GUI Tools¶
a comprehensive list of GUI tools are listed here on git-scm.com but here are a few of the developer favouites:
- GitHub Desktop for Windows and Mac is an easy to use tool with good GitHub integration but has fewer features than other clients.
- Sourcetree for Windows and Mac OSX is a full featured tool with a nice interface with many features including allowing individual lines from a file to be included in a new commit (simpler tools only allow the entire file to be included)
- GitKraken is a a full featured tool for Windows, Mac and Linux
Go to the desktop.github.com 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