Git

last modified: 2024-01-22 by Kodai Okawa

Analysis files for each experiment are managed using git. This is so that they can be quickly restored if they are all lost for some reason.

Git is a bit complicated and you can commit freely if you are knowledgeable, but if you are unfamiliar with it, you don’t have to worry too much. The main use is that if someone creates a useful file, it will be reflected for each user as well.

Here is a brief description of how to use it.

Directory structure

In the CRIB analysis PC, we used local repository. The files related the repository is stored here.

> cd ~
> tree -L 1 repos/exp
repos/exp
├── he6p2024.git
├── he6p.git
└── o14a.git

# 2023/12/18 current status
Warning

Note that if you delete the files in this directory, you will lose all backups.

basic commands

I will describe the most commonly used commands and how to resolve conflicts.