Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thutterer/homegit
:house_with_garden: Make yourself at home
https://github.com/thutterer/homegit
dotfiles git
Last synced: 6 days 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 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T15:30:52.000Z (5 months ago)
- Last Synced: 2024-12-14T04:41:47.393Z (10 days 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 ~
```