For me, it kept saying failed to find repository when I pushed or pulled.
This worked for me.
File > Account Settings > Remove the github account > Then login to github account again.