Using Git for GPSTk development

What is Git?

Git is a distributed revision control system. It records all the source code, and tracks changes to that source code.

It can be downloaded from http://git-scm.com/. There is also a book about Git usage online at http://git-scm.com/book.

See Installing Git Client

How does GPSTk use Git?

The GPSTk project currently contains Git configuration files within the source code, and will use a future ARL Git server store and track changes to the source code. When the server is complete, developers will have the ability to contribute to GPSTk using Git, since it is the most convenient method if you are doing more than a one-off patch.

Watching

Check-ins will be automatically mailed to the gpstk-sourceforge mailing list. See GPSTkEmailLists.

Basic commands

Task Command Notes
Get a copy of the repository git clone https://address/of/future/server *The tree is writeable.
Fetch latest changes from origin git fetch  
Pull latest changes changes from origin to your repository git pull Conflicts are noted, and files in conflict are modified with markers.
List your changes prior to staging/committing them git status  
Abandon changes git checkout [file]  
Stage your changes git add  
Unstage your changes git reset  
Commit your changes git commit [optional -m "Mandatory log message"] If you don't supply a log message it will launch a text editor for you to enter one in. Which editor is launched can be redefined by setting the EDITOR environment variable.
Get help all commands git help  
Get help on a command git help [command]  

-- Contributors: BryanParsons - 05 Sep 2013

Discussion

 
Topic revision: r1 - 05 Sep 2013, BryanParsons
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback