{"id":28256757,"url":"https://github.com/zigotica/tilde","last_synced_at":"2026-03-05T03:34:07.611Z","repository":{"id":148832579,"uuid":"260498204","full_name":"zigotica/tilde","owner":"zigotica","description":"git bare repo to hold my .bash_profile and .config folder (bash, custom bin scripts, nvim, ollama,...)","archived":false,"fork":false,"pushed_at":"2026-02-14T20:20:27.000Z","size":500,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-14T23:33:10.894Z","etag":null,"topics":["ai-model","ansible-vault","bash","bash-profile","bash-scripting","bin-files","deepseek-coder","dotfiles","dotfiles-macos","git-bare","git-config","lua","mistral","neovim","neovim-config","neovim-dotfiles","ollama","sketchybar","tmux-conf"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zigotica.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-01T15:50:57.000Z","updated_at":"2026-02-14T20:20:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f54c8033-8982-49c2-a6ef-15969937707d","html_url":"https://github.com/zigotica/tilde","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zigotica/tilde","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigotica%2Ftilde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigotica%2Ftilde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigotica%2Ftilde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigotica%2Ftilde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zigotica","download_url":"https://codeload.github.com/zigotica/tilde/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zigotica%2Ftilde/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30108668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:32:43.378Z","status":"ssl_error","status_checked_at":"2026-03-05T03:32:22.667Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-model","ansible-vault","bash","bash-profile","bash-scripting","bin-files","deepseek-coder","dotfiles","dotfiles-macos","git-bare","git-config","lua","mistral","neovim","neovim-config","neovim-dotfiles","ollama","sketchybar","tmux-conf"],"created_at":"2025-05-19T23:13:50.982Z","updated_at":"2026-03-05T03:34:07.580Z","avatar_url":"https://github.com/zigotica.png","language":"Shell","readme":"# Dotfiles backup using a bare repository\n\n\nThis approach is following [The best way to store your dotfiles: A bare Git repository](https://www.atlassian.com/git/tutorials/dotfiles) article. I just changed the alias and destination folder a bit: \n\n\n## Create new bare repo from scratch\n\n\n```\ncd ~\ngit init --bare $HOME/._dotfiles.git\nalias dot='/usr/bin/git --git-dir=$HOME/._dotfiles.git/ --work-tree=$HOME'\ndot config --local status.showUntrackedFiles no\n```\n\n\nAt this point the article has a command to append the alias to `.bashrc`. But since my bash profile is a bit more elaborated, I just added it manually in `/.config/bash/.aliases`.\n\n\nIn my case then I am using `dot status`, `dot add`, `dot commit`, etc. \n\n\n## Clone bare repo in new machine\n\nI actually use [this shell script](https://github.com/zigotica/automated-desktop-setup) to automate my desktop setup. One of the options is actually cloning this repo as a bare repo.\n\nIf you want to do this manually, make sure you backup these files / folders in your machine, to avoid conflicts. How I do it: \n\n\n```\necho Clone bare repo using https (to avoid requiring .ssh key)\ngit clone --bare https://github.com/zigotica/tilde.git $HOME/._dotfiles.git\n\necho Hide untracked files\n/opt/homebrew/bin/git --git-dir=$HOME/._dotfiles.git/ --work-tree=$HOME config status.showUntrackedFiles no\n\necho Add bare repo to .gitignore\necho ._dotfiles.git \u003e\u003e $HOME/.gitignore\n\necho backup current dotfiles\nmv $HOME/.config $HOME/.config.bk\nmv $HOME/.bash_profile $HOME/.bash_profile.bk\nmv $HOME/.bashrc $HOME/.bashrc.bk\nmv $HOME/.tmux.conf $HOME/.tmux.conf.bk\nmv $HOME/readme.md $HOME/readme.md.bk\n\necho Checkout\ncd $HOME \u0026\u0026 /opt/homebrew/bin/git --git-dir=$HOME/._dotfiles.git/ --work-tree=$HOME checkout\n\necho update remote url to use ssh\n/opt/homebrew/bin/git --git-dir=$HOME/._dotfiles.git/ --work-tree=$HOME remote set-url origin git@github.com:zigotica/tilde.git\n\necho copy .ssh_bk encrypted files into .ssh and decrypt them\nmkdir $HOME/.ssh \u0026\u0026 cp $HOME/.ssh_bk/* $HOME/.ssh/ \u0026\u0026 ansible-vault decrypt $HOME/.ssh/*\n\necho DONE\necho Note that some of these changes require a logout/restart to take effect\n```\n\n\n...and you're good to go.\n\nPlease note, in my case, I am keeping my ssh keys and config encrypted in a folder inside this repo (`.ssh_bk`). To encrypt/decrypt I am using ansible-vault on all the files of this folder, for instance, `ansible-vault encrypt $HOME/.ssh/*`, and `ansible-vault decrypt $HOME/.ssh/*`. In both cases, it will prompt for a password and use AES256. In the example above, I copy the encrypted files to a proper `.ssh` folder when cloning the repo, then decrypt them. This way the decrypted files will never be part of the repo.\n\nFinally, once resourcing or restarting the shell, I would be using `dot status`, `dot add`, `dot commit`, etc. since they are part of my aliases.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigotica%2Ftilde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzigotica%2Ftilde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzigotica%2Ftilde/lists"}