Skip to content

Instantly share code, notes, and snippets.

@bqcuong
Created August 16, 2024 12:30
Show Gist options
  • Select an option

  • Save bqcuong/1c3095039b4e9091a0f63480858b2b44 to your computer and use it in GitHub Desktop.

Select an option

Save bqcuong/1c3095039b4e9091a0f63480858b2b44 to your computer and use it in GitHub Desktop.
Git repository setup for dotfiles backup
# 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