-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup #3
Comments
|
Manage Dotfiles With a Bare Git Repository After switching from Sublime Text to vim, I started looking for a way to manage my dotfiles. It took me a lot of work to configure and understand them, so I wanted to back them up against emergency. And of course I wanted to have those personal settings wherever I work. At first I considered Vagrant, but it seemed like an overkill for just a few dotfiles. My next idea was to symlink dotfiles to a single directory and manage that folder with git. But that also felt unnecessarily complex - surely there would be a simpler way to do this, right? And then I found what I was looking for. This method uses a git bare repository, and aliasing git commands to send them to that repo. Simple setup process? Check. Version control in git? Check. Easy installation on different machine? Check. Awesome! Setup git init --bare $HOME/.dotfiles.git
Installing dotfiles to another system
Create alias to ensure that the git bare repository works without problem. |
Instead of |
https://www.howtogeek.com/700398/how-to-automatically-hide-or-show-the-menu-bar-on-a-mac/ |
copy |
Article: https://harfangk.github.io/2016/09/18/manage-dotfiles-with-a-git-bare-repository.html
git clone --bare https://github.com/collegeimprovements/dotfiles $HOME/.dotfiles
The text was updated successfully, but these errors were encountered: