I'm using a git bare repository for managing dotfiles, and some other repositories for custom DWM build and all. I use SSH for pushing and pulling from git, but it keeps asking me my SSH passphrase every time try to push or pull. i have already tried
eval $(ssh-agent)
then
ssh-add ~/.ssh/id_rsa
and its added successfully, but no luck I am missing something?
git config? – Archemar Jun 23 '20 at 09:06id_rsa.pubto gitlab -> settings -> SSH keys and i didconfig config --global user.name "apoorv569"andconfig config --global user.email "xxxx@email.com"and for other repositories also i did the same butgit configinstead ofconfig config.configis aliased toconfig='/usr/bin/git --git-dir=/home/apoorv/dotfiles --work-tree=/home/apoorv'as mentioned here - https://www.atlassian.com/git/tutorials/dotfiles – apoorv569 Jun 23 '20 at 09:13configto pull/push files also ? (well obviously, either you would have been rejected from git) – Archemar Jun 23 '20 at 09:33configand for other repositories, i cd into the folder and use regulargit– apoorv569 Jun 23 '20 at 09:39