Browse Source

expanded readme

master
marc 4 years ago
parent
commit
ad7032294c
1 changed files with 12 additions and 0 deletions
  1. 12
      README.md

12
README.md

@ -2,6 +2,7 @@
```sh ```sh
git init --bare $HOME/dotfiles git init --bare $HOME/dotfiles
alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc) alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc)
source .zshenv
dot config --local status.showUntrackedFiles no dot config --local status.showUntrackedFiles no
git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
git remote -v git remote -v
@ -14,6 +15,17 @@ dot add /path/to/file
dot commit -m "some message" dot commit -m "some message"
dot push dot push
``` ```
## move to a new computer
```sh
cd
alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
source .bashrc
echo "dotfiles" >> .gitignore
git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
dot checkout
cd dotfiles
dot config --local status.showUntrackedFiles no
```
## pull repository ## pull repository
```sh ```sh

Loading…
Cancel
Save