How do I use GIT in CADE?

In CADE, any lab1 and lab2 machine can be used as a git repository.

1) A git repository can be created using the ‘git init MY_REPO’ command.
This will create and initialize a simple git repository called ‘MY_REPO’ in your current directory

2) If this is going to be a shared git repository, it is highly recommended to initialize using the ‘- -bare’ flag.
Example: ‘git init –bare MY_REPO’
This will create and initialize a simple git repository that does not include a working copy.

3) By default, git uses simple UNIX permissions for file management. This means that you can share access to the git repository based on the group in which the files belong to.

4) The git repository can be checked out via SSH from any lab1 or lab2 machine.
Example: ‘git clone ssh://USERNAME@lab[1-2]-[1-40].eng.utah.edu/path/to/repo’

5) If using the bare flag (which is highly recommended), the owner of the git repository should still check out their own working copy, so as to not overwrite other peoples’ changes.

Posted in: FAQ, Software