DVCS (Git)

DVCS stands for distributed version control system. It's a tool that many programmers use to track changes in their programs. Several DVCSs exist, the most popular being Git. When used in conjunction with an online service like GitHub or Bitbucket, it also allows programmers to collaborate on the same files at the same time as well as backup their program's file online.

Installation on Windows

Git for Windows can be downloaded from http://code.google.com/p/msysgit/. If you plan to use the same computer each time you work on your program, download and install the version that begins with Git. If you will be using multiple computers, you should download the portable version and extract it to a your USB flash drive (the same one you store your programs on).

BeagleBone Black

Most images for the BeagleBone Black come with Git pre-installed.

Setting up Git

config --global user.name "John Doe"

config --global user.email john.doe@email.com

config --list (list all settings - make sure they are correct)

Setting up a Repository

init (initialized a repository)

status

remote add [short name] url

remote (see a list of current remotes)

Commiting & Pushing

add myfile

add -u (stage all changed files)

commit -m "Add a note about the commit here" (creates a snapshot of the project on the local machine)