Moving my dotfiles repository to Gitlab

2021/02/20 by Paulo Pereira

~/categories/Linux #Linux #Arch Linux #Gitlab

I’ve been using Keybase to manage my dotfiles with git. Do give it a read to learn how I’m doing it.

This is just how I moved the git server-side from Keybase to Gitlab.

First of all create a new empty repository in Gitlab. I’ve created a ‘dotfiles’ repository.

cd ~
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
dotfiles fetch origin
dotfiles remote add new-origin git@gitlab.com:your_username/dotfiles.git
dotfiles push --all new-origin
dotfiles remote rm origin
dotfiles remote rename new-origin origin
dotfiles add your_dotfile
dotfiles commit -m "Updated configs"
dotfiles push --set-upstream origin master