You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
532 B

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. # Initialization
  2. ```sh
  3. git init --bare $HOME/dotfiles
  4. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add this to .zshenv or .bashrc)
  5. dot config --local status.showUntrackedFiles no
  6. git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  7. git remote -v
  8. ```
  9. # Usage
  10. ## Add or edit files in repository
  11. ```sh
  12. dot add /path/to/file
  13. dot commit -m "some message"
  14. dot push
  15. ```
  16. ## pull repository
  17. ```sh
  18. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  19. dot pull origin master
  20. ``