yadm on main branch - orleanski/dotfiles GitHub Wiki

tl;dr YADM

Insall yadm in Gentoo emerge -vq yadm

Clone: yadm clone https://github.com/orleanski/dotfiles

or Pull yadm pull --rebase origin main

Unstaged changes and diffs before commit: yadm status -vv

Push: yadm push -u origin main

main branch is now the default branch on github.

Move the master branch to main with the command: git branch -m master main.

Push the newly-named main branch to GitHub (assuming that is your remote repository) with the command:

git push -u origin main. See details.

Set default branch main for git init: git config --global init.defaultBranch main.

YADM

yadm is used to backup and restore config files. Switched to the master branch, clone from main branch on clean system causes hiccups

Brand new with existing repo

  • For fresh gentoo please install yadm # emerge -vq yadm
  • Clone an existing repository # yadm clone https://github.com/orleanski/dotfiles.git

Brand new with no repo

  • Initialize a new repository # yadm init
  • Start choosing files for back up yadm add path/configrc

Errors

When cloning

  • If you encounter any error when cloning, run yadm stash
  • Then reclone with # yadm clone -f https://github.com/orleanski/dotfiles.git

Please report any issues you have here