https://github.com/thutterer/homegit
  
  
    :house_with_garden: Make yourself at home 
    https://github.com/thutterer/homegit
  
dotfiles git
        Last synced: 7 months ago 
        JSON representation
    
:house_with_garden: Make yourself at home
- Host: GitHub
- URL: https://github.com/thutterer/homegit
- Owner: thutterer
- Created: 2017-10-27T16:32:36.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T15:30:52.000Z (over 1 year ago)
- Last Synced: 2025-02-10T04:11:13.681Z (9 months ago)
- Topics: dotfiles, git
- Language: Shell
- Homepage:
- Size: 69.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          # homegit
Make yourself at home with the power of Git alone ... and this alias:
```bash
alias homegit="GIT_DIR=~/.homegit/.git GIT_WORK_TREE=~ git"
```
## Setup
You probably want to start a new repository for your own dotfiles:
```bash
mkdir ~/.homegit
homegit init
echo "*\n\!.gitignore" > ~/.gitignore
homegit add .gitignore
homegit commit -m "ignorance is bliss"
```
Use `homegit` to `add -f` and `commit` your files.
Create a [new repository](https://github.com/new) on GitHub and `homegit push` to it.
Whenever you want to make yourself at home at a new place, set up the alias and do:
```bash
# replace the repository URL with yours
git clone https://github.com/thutterer/homegit.git ~/.homegit
mv ~/.homegit/.gitignore ~
```