https://github.com/awaelchli/dotfiles
https://github.com/awaelchli/dotfiles
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/awaelchli/dotfiles
- Owner: awaelchli
- Created: 2021-01-02T23:07:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-19T03:30:34.000Z (about 2 years ago)
- Last Synced: 2025-03-28T21:45:45.733Z (about 2 months ago)
- Language: Shell
- Size: 424 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: .github/README.md
Awesome Lists containing this project
README
# Personal Dotfiles Repository
## Creating a bare dotfiles repository
```bash
mkdir $HOME/src
git init --bare $HOME/src/dotfiles.git
```
This initializes an empty bare repository. The working directory will be in `$HOME`.
A convenient alias to manage the working tree from any directory:
```bash
alias config='/usr/bin/git --git-dir=$HOME/src/dotfiles.git --work-tree=$HOME'
```
Add the above command to your `.bashrc` for example.
Most files in the home folder should not be tracked. It is easier to work with individual dotfiles by hiding untracked files:
```bash
config config --local status.showUntrackedFiles no
```## Example Usage
```bash
config status
config add ~/.bashrc
config commit -m "update bashrc"
config push
```## Acknowledgements
Inspired by the article [The best way to store your dotfiles: A bare Git repository](https://www.atlassian.com/git/tutorials/dotfiles) from Atlassian.