Difference between revisions of "Git Basics"

From FRC11 - Mentor Wiki
Jump to navigation Jump to search
Line 12: Line 12:
 
=== Git Vocabulary ===
 
=== Git Vocabulary ===
  
−
Server: External computer other computers connect to.  Runs software to collect and provide information to ''Clients'' (you)
+
'''Server''': External computer other computers connect to.  Runs software to collect and provide information to ''Clients'' (you)
  
−
''Version Control System'' or ''Source Control'': A system that manages source code for controlling what goes INTO a software version release, and provides a mechanism for making changes and tracking those changes. Your exposure to it the Source Control is the program to send information to server.
+
'''''Version Control System'' or ''Source Control''''': A system that manages source code for controlling what goes INTO a software version release, and provides a mechanism for making changes and tracking those changes. Your exposure to it the Source Control is the program to send information to server.
  
−
Clone: Bring an external project to your computer to work on it
+
'''Clone''': Bring an external project to your computer to work on it
  
−
Repository: A database that holds the Source
+
'''Repository''': A database that holds the Source
  
−
Commit: Save changes locally (to your local repository)
+
'''Commit''': Save changes locally (to your local repository)
  
−
Push: Send local changes to server (to the shared repository)
+
'''Push''': Send local changes to server (to the shared repository)
  
−
Pull: Pull others’ local changes [TBD not sure "local" is correct]
+
'''Pull''': Pull others’ local changes [TBD not sure "local" is correct]
  
  

Revision as of 07:45, 19 October 2018

About Source Control

Git is a great tool for Source Control. Source Control is all about saving, sharing, and managing your source code. It is a significant element of Configuration Management (CM), and Version Control, which deal with managing changes to a Software System (or other systems of information).

For example, did we want to run this upcoming event after bringing in Billy's latest efforts on the Nav system? Did he finish it? Test it fully? Did Joey mess it up thinking it was fixed? CM provides a structured approach to approving changes to the software baseline and pulling them into a release of the software.

Source Control is the first step in a good CM process. It makes sure we save our work, gets it backed up in case we lose our hard drive, and share our work with others. It allows us to roll back to a previous version of working code, identify changes that were made and when, and who made those changes. It can allow us to make sure we have the latest appropriate code from everyone, but we have to be responsible for getting the latest code.

We have to take this last step of getting latest to make sure our code works with the latest code, and doesn't break anything.

Git Basics

Git Vocabulary

Server: External computer other computers connect to. Runs software to collect and provide information to Clients (you)

Version Control System or Source Control: A system that manages source code for controlling what goes INTO a software version release, and provides a mechanism for making changes and tracking those changes. Your exposure to it the Source Control is the program to send information to server.

Clone: Bring an external project to your computer to work on it

Repository: A database that holds the Source

Commit: Save changes locally (to your local repository)

Push: Send local changes to server (to the shared repository)

Pull: Pull others’ local changes [TBD not sure "local" is correct]

User Setup

More Git

Git Graphical User Interfaces

Git Command Line

Git Administration