I cloned a friend's git repository to my workstation. I then created my own branch and started working on it. I have also been given the ssh private key of the remote repository where I originally cloned from.
Now, when I try to push my changes to that remote repo, I get the "fatal: The remote end hung up unexpectedly" error.
git push origin anshumanbhartiya fatal:The remote end hung up unexpectedly Here, anshumanbhartiya is the name of the branch I created to work on and I am trying to push this branch to the origin where I cloned from.
My question is I know I should be using the key provided to me to push the changes but I just cant figure out how to use that key. In ~/.ssh/ directory, I already have my own private and public key stored that I generated while setting up github. I dont know what to do with my friends ssh key.
Please help!