Moving my dotfiles repository to 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.
1cd ~
2alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
3dotfiles fetch origin
4dotfiles remote add new-origin git@gitlab.com:your_username/dotfiles.git
5dotfiles push --all new-origin
6dotfiles remote rm origin
7dotfiles remote rename new-origin origin
8dotfiles add your_dotfile
9dotfiles commit -m "Updated configs"
10dotfiles push --set-upstream origin master