Skip to content

🏡 Make yourself at home

Notifications You must be signed in to change notification settings

thutterer/homegit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homegit

Make yourself at home with the power of Git alone ... and this alias:

alias homegit="GIT_DIR=~/.homegit/.git GIT_WORK_TREE=~ git"

Setup

You probably want to start a new repository for your own dotfiles:

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 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:

# replace the repository URL with yours
git clone https://github.com/thutterer/homegit.git ~/.homegit
mv ~/.homegit/.gitignore ~

About

🏡 Make yourself at home

Topics

Resources

Stars

Watchers

Forks