A utility to manage bare git repos in your home directory
See also Dotfiles: Best way to store in a bare git repository
Once a repo is initialized or cloned, use homegit
as you would git
.
cd $HOME
homegit init
echo "this is a file" > file.txt
homegit add file.txt
homegit commit
homegit log
homegit clone https://github.com/notwillk/test-homegit.git
cat ~/test_file.txt
HOMEGIT_REPO=identifier homegit clone https://github.com/notwillk/test-homegit.git
cat ~/test_file.txt
Variable | Default value | Description |
---|---|---|
HOME | none. | The path to the user's home directory |
GIT_EXECUTABLE | the output of which git |
The location of the git command to execute |
HOMEGIT_DIR | $HOME/.homegit |
The path to the directory containing the git dirs |
HOMEGIT_REPO | default | The identifier for the source repo |