Git
Git is an highly popular distributed version control system that is used to keep all historical changes for a project, with the ability to revert to a former change, and allows for easy and seamless collaboration among multiple developers through merging of code.
When searching for scientific software, tutorials, and datasets online, you'll see Git as the primary tool used for services such as GitHub, GitLab, and BitBucket.
Never Used Git?
Are you new to Git and would like to know how to use it for your research or class coding project? Contact the HPC Team and we'd be glad to introduce you to a new way to collaborate with other members in the group.
Availability
| Cluster | Module/Version |
|---|---|
| BOSE | 2.27.0* git/2.51.0 |
| BGSC | 2.43.5* git/2.28.0 |
*Installed By Default
Git is installed by default on both of our clusters and does not require loading a module. However, we recommend using the modules when the version is higher as that is easier to keep up to date and can be more secure.
Sample Slurm Script
#!/bin/bash
# -- SLURM SETTINGS -- #
# [..] other settings here [..]
# The following settings are for the overall request to Slurm
#SBATCH --ntasks-per-node=32 # How many CPU cores do you want to request
#SBATCH --nodes=1 # How many nodes do you want to request
# -- SCRIPT COMMANDS -- #
# Load the needed modules
module load git # Load Git - If overriding default version
git clone https://github.com/username/my-repo.git
Real Example
Has your research group used Git in a project? Contact the HPC Team and we'd be glad to feature your work.