Open iquabius opened 2 years ago
After running dotfiles checkout
on a new system I don't get all repo files like the article says:
Git pulls the tracked files out of the compressed database in the Git directory and places them in the work tree.
I forgot to add ".dotfiles"
to .gitignore
. Could that be the problem?
By running dotfiles status
I see that every file is deleted.
So I need to run dotfiles reset --hard
to "undelete" the files.
Could that be improved?
On Archcraft I used exec ssh-agent zsh
to start SSH agent.
For bash it could be eval $(ssh-agent -s)
.
Refs:
To make it work with Magit on Emacs:
echo 'gitdir: ./.dotfiles/.git/' >> ~/.git
dotfiles config --local core.worktree ../../
https://stackoverflow.com/questions/34169458/emacs-magit-git-dir-is-not-in-the-default-place
Creating the new repository
A lot of tutorials uses a bare git repository, but that's not strictly necessary. Check .
Add alias to
~/.config/fish/config.fish
:Refresh current shell:
Setting up on a new system
I tried this in a fresh install of Garuda Sway edition.
Refs