8000 GitHub - mihirsd/dotfiles: Config files
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mihirsd/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

Based on the Hacker News thread and Atlassian tutorial

Get started

  1. Clone into a bare repository:
git clone --bare git@github.com:mihirsd/dotfiles.git $HOME/.dotfiles
  1. Define the alias in the current shell scope:
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
  1. Checkout the content from the bare repository to $HOME:
dotfiles checkout

If the command fails, backup or remove the conflicting files.

  1. Set the flag showUntrackedFiles to no on this local repository:
dotfiles config --local status.showUntrackedFiles no
  1. That's it! Use the dotfiles command to add or update dotfiles
dotfiles status
dotfiles add .bashrc
dotfiles commit -m "Add bashrc"
dotfiles push

About

Config files

Resources

Stars

Watchers

Forks

0