Jump to navigation Jump to search

Git is an open source popular distributed version control system (VCS) and is available for Mac OS X, Windows, Linux and Solaris. It is free and open source.[1][2][3]

Basics[edit | edit source]

Forget what you know about any other VCS.[4]

Git is fully featured when used as a command line tool.[5]

Usage for hardware projects[edit | edit source]

All VCSs can handle text & binary files but cannot merge binary ones.[6]

Git has a fairly steep learning curve, other version control systems might be more intuitive but are not as widely used. Only a few commands are needed, e.g. status, add, remove, commit, push, etc. and then usage is simple. Git works locally, a remote server is optional. When using a remote server, it can be located anywhere accessible via HTTP or SSH.[3][3][7]

A repository is a nest of folders for e.g. projects and libraries. Then git is used to commit or push changes. This way git takes care of all the tracking, removing the need for keeping multiple versions of a project and any point in the development can be returned to.[8][9]

GitHub, GitLab and other sites are git repository hosting service, they offer the functionality of git as well as adding their own features. Having a centralized repository allows people to collaborate on projects.[3][10]

Setting up a repository[edit | edit source]

To create a repo within an existing project folder, first cd to the root project folder and then execute the git init command.[11]

cd /path/to/your/existing/code
git init


Github[edit | edit source]

GitHub lets you complete many Git-related actions without using the command line.[12] Images in a GitHub repository can be viewed in the browser and visually compared in different modes.[13] To make use of this feature export schematic and PCB layouts as images.

References[edit | edit source]

External links[edit | edit source]

  • Git downloads for Mac OS X, Windows, Linux and Solaris
  • Pro Git Book – An open source book on Git by Scott Chacon and Ben Straub, Apress, 2014, ISBN 1-4842-0077-2
  • Git documentation
  • Git, Wikipedia

Cheat sheets[edit | edit source]

Beginners guides[edit | edit source]

Github[edit | edit source]