I'm trying to manage my dotfiles and .config directory with git. I create a new repo and run git init
. After that I run git add .
and git commit -m "first commit"
then git remote add origin https://github.com/usename/dotfiles.git
. However when I go to push with git push -u origin master
I get:
Warning: Permanently added the RSA host key for IP address 'XXX.XX.XXX.X' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
I accidentally deleted my .gitconfig (I'm not sure if that caused this?) but I have made a new one.
Also when I run git add .
there is no output.
.gitignore
*
!.config/
.config/**
!.config/bspwm/*
!.config/compton.conf
!.config/htop/*
!.config/mpd/*
!.config/mupen64plus/*
!.config/neofetch/*
!.config/polybar/*
!.config/ranger/*
!.config/sxhkdrc/*
!.scripts/
!.bashrc
!.ncmpcpp
!.vimrc
!.xinitrc
!.Xresources