I accidentally ran `git reset --hard` on my home directory and ended up nuking most of my dotfiles and ALL of my utility scripts.

Aaaahhhhh

@joshavanier atlassian.com/git/tutorials/do

Here's a different way to version control files in your home directory without using symbolic links or anything like that. It will be impervious to that command as well, since the git directory is bare.

Follow

@stephen I didn't use symlinks. I just set the entire home directory as a git repo and whitelisted the relevant config files and my bin folder lol. I'll switch over to the bare git repo; thanks! :)

@stephen Hmm I'm unable to push commits to GitLab with a bare repo. Something about a protected branch.

Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them. Check out our Patreon to see our donations.