
dotbot was then used to copy - NOT symlink - the. In the end, my solution was to move all of the shared git configuration to a common.ini file, then have ~/.gitconfig include that file. This could work, but makes it impossible to change branches in my dotfiles repo. Before writing Toml Bombadil, I was using dotbot, its easy to configure and. Once gitconfig.ini is committed, it cannot be ignored. You can have multiple value files in the same dotfile repository and change. This doesn't work because git can only ignore files that are untracked in the git repo. I want the tools to continue showing me useful lists of recent repos, but I don't want my dotfiles repo to have merge conflicts when synchronizing changes.Ĭommit a clean gitconfig.ini file, then git-ignore it. In many cases, that "configuration" is simply a list of recently-opened repositories.Īs a result, my git config frequently contains garbage, transient changes.

Misleading error message git-secret: abort: not in dir with git repo. It does less than you think, because version control systems do more than you think.less than you think, because version control systems do more than you think. All you can do is copy the content in its current state and add it as new content to the second repository. Dotbot is a tool that bootstraps your dotfiles (its a Dotfiles bootstrapper, get it). Not even if the repositories live on the same server.
#Dotbot copy file to repo code#
I use various git tools that store their configuration in. have git-secret-cat return non-zero exit code if files cannot be decrypted. Whilst you can copy or move files and folders within a repository, you cannot copy or move from one repository to another while preserving history using TortoiseSVN. Thanks to dotbot, that file will exist and point to the correct git config file for whichever platform it's running on. gitconfig-platform-specific in my home directory on both Windows and Linux. This setup means that git will include a file named. Link : ~/.gitconfig : shared/git/gitconfig.ini ~/.gitconfig-platform-specific : shared/git/windows.ini
