Created
August 16, 2024 12:30
-
-
Save bqcuong/1c3095039b4e9091a0f63480858b2b44 to your computer and use it in GitHub Desktop.
Git repository setup for dotfiles backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: https://news.ycombinator.com/item?id=11071754 | |
| git init --bare $HOME/.myconf | |
| alias config='/usr/bin/git --git-dir=$HOME/.myconf/ --work-tree=$HOME' | |
| config config status.showUntrackedFiles no | |
| config status | |
| config add .vimrc | |
| config commit -m "Add vimrc" | |
| config add .config/redshift.conf | |
| config commit -m "Add redshift config" | |
| config push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment