Skip to main content

git

Versions and Availability

h4

h5
Module Names for git on qb2
Machine Version Module Name
qb2 2.25.0 git/2.25.0/intel-19.0.5

▶ Module FAQ?

▶ Did not find the version you want to use??

About the Software

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Usage

Placing a directory under GIT revision control would involve the following commands:

$ mkdir 
$ cd 
$ git init # initialize git w/i this directory

One can then proceed to manipulate files within the directory as so:

$ git add . # adds files w/i the current directory
$ git commit # commits changes 
$ git status # lists files that have been modified
$ git diff  # lists changes made to given file
$ # grab repo from remote location, assuming
$ # a 'git init' was executed in the directory first:
$ git pull ssh://[user@]host/~user/path/to/repo 

Resources

Last modified: September 10 2020 11:58:50.