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.

34 lines
879 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 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. source .zshenv
  6. dot config --local status.showUntrackedFiles no
  7. git remote add origin https://gitea.cloudpshere.duckdns.org/marc/dotfiles.git
  8. git remote -v
  9. ```
  10. # Usage
  11. ## Add or edit files in repository
  12. ```sh
  13. dot add /path/to/file
  14. dot commit -m "some message"
  15. dot push
  16. ```
  17. ## move to a new computer
  18. ```sh
  19. cd
  20. alias dot="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" (add to .bashrc)
  21. source .bashrc
  22. echo "dotfiles" >> .gitignore
  23. git clone --bare https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git $HOME/dotfiles
  24. dot checkout
  25. cd dotfiles
  26. dot config --local status.showUntrackedFiles no
  27. ```
  28. ## pull repository
  29. ```sh
  30. dot clone https://gitea.cloudsphere.duckdns.org/marc/dotfiles.git
  31. dot pull origin master
  32. ```