Git overview for RoboCup Andre Pool, September 2015.

8
Git overview for RoboCup Andre Pool, September 2015

Transcript of Git overview for RoboCup Andre Pool, September 2015.

Page 1: Git overview for RoboCup Andre Pool, September 2015.

Git overview for RoboCup

Andre Pool, September 2015

Page 2: Git overview for RoboCup Andre Pool, September 2015.

Contents

• About• Don’ts• Branching• Questions

Page 3: Git overview for RoboCup Andre Pool, September 2015.

About• Around since 2005 (Linux)• 100% save (calculated hashes)• Very strict!• Impossible to tamper with data• Distributed version control system• Gazillion options• Better merge then SVN• Hashes instead of readable version number

Page 4: Git overview for RoboCup Andre Pool, September 2015.

How• Slightly more difficult to use then SVN

– Logical if you understand the revision management problem!

• Can start using GIT with only a few commands– log, status, diff, add, commit, push and pull

• Advice to start with command line– Know what is going on

Page 5: Git overview for RoboCup Andre Pool, September 2015.

Distributed Version Control System (DVCS)

• Every working directory is a complete repository• Commit on local repository (extremely fast)• Commit not depended on other users/repos• Central (golden) repository is optional• Before deleting workspace

– Push to somewhere– Pulled from somewhere

Page 6: Git overview for RoboCup Andre Pool, September 2015.

• Do not add large files to the source repository!– > 100kByte (png, doc, avi, ..)

• Large files on:– Separate git repository– Mega– Google Drive …

Page 7: Git overview for RoboCup Andre Pool, September 2015.

Branching

Page 8: Git overview for RoboCup Andre Pool, September 2015.

Questions