diff options
| author | srdusr <[email protected]> | 2022-12-12 23:46:06 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2022-12-12 23:46:06 +0200 |
| commit | 7f5541440b0981acbeff283548a3404586bf0827 (patch) | |
| tree | dcdd97d4c9c0445dfd05ded7e70ac2216fc91f4e /tools/git.md | |
| parent | a2dfb2a2c844a9fc0a75c17e4455a98ffac54c32 (diff) | |
| download | notes-7f5541440b0981acbeff283548a3404586bf0827.tar.gz notes-7f5541440b0981acbeff283548a3404586bf0827.zip | |
Fixed formatting to show list orders
Diffstat (limited to 'tools/git.md')
| -rw-r--r-- | tools/git.md | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tools/git.md b/tools/git.md index 7c7ee3b..a80317b 100644 --- a/tools/git.md +++ b/tools/git.md @@ -1,22 +1,23 @@ ### Dotfiles -- Intialize git and create a folder named ~/.cfg +- Creating a dotfile git repo +1. Intialize git and create a folder named ~/.cfg ```bash git init --bare $HOME/.cfg ``` -- Put this in your .bashrc or .zsh to use `config` as a dotfiles alias. +2. Put this in your .bashrc or .zsh to use `config` as a dotfiles alias. ```bash alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' ``` -- Make sure to ignore the folder we're going use to clone. +3. Make sure to ignore the folder we're going use to clone. ```bash echo ".cfg" >> .gitignore ``` -- Set flag to not show untracked files +4. Set flag to not show untracked files ```bash config config --local status.showUntrackedFiles no ``` -- Replacing git with our newly created config alias we can version control our +5. Replacing git with our newly created config alias we can version control our dotfiles. ```bash config status @@ -24,6 +25,7 @@ config add .bashrc config commit -m "Added bashrc" config push ``` + config submodule add https://github.com/user/repo.git .path/to/repo config submodule update --remote --merge |