![]() Hi ! You've successfully authenticated, but GitHub does not provide shell access. So, if you are checked out to the main branch when you execute git push. By default, git push only updates the corresponding branch on the remote. You can also think of git push as update or publish. ![]() It is one of the four commands in Git that prompts interaction with the remote repository. ĭebug1: Authentication succeeded (publickey). git push updates the remote branch with local commits. This solved it, but I keep asking myself why would Github then advise you to point a new repositorys remote end to an http URL by default. cp /c/Users/Yuci/.ssh/github_rsa /c/Users/Yuci/.ssh/id_rsa Quickstart / Fork a repo Fork a repo In this article About forks Prerequisites Forking a repository Cloning your forked repository Configuring Git to sync your fork with the upstream repository Find another repository to fork Next Steps A fork is a new repository that shares code and visibility settings with the original upstream repository. Therefore, I could simply copy github_rsa to id_rsa in the same directory. However, my private key is of a different name called /c/Users/Yuci/.ssh/github_rsa.Īccording to the sample output, Git is trying /c/Users/Yuci/.ssh/id_rsa, which I don't have. I actually have already added the public key to GitHub before, and I also have the private key locally. git remote -v (no idea what thats suppose to do. git remote add origin remote repository URL ->the repository I want to add the local file/folder to. git add (name folder or file I want to add to the github repository) git commit -m ''. git init Add the files in your new local repository. (using command line): Initialize the local directory as a Git repository ->git init. ![]() Initialize the local directory as a Git repository. Change the current working directory to your local project. ĭebug1: Trying private key: /c/Users/Yuci/.ssh/id_rsaĭebug1: Trying private key: /c/Users/Yuci/.ssh/id_dsaĭebug1: Trying private key: /c/Users/Yuci/.ssh/id_ecdsaĭebug1: Trying private key: /c/Users/Yuci/.ssh/id_ed25519ĭebug1: No more authentication methods to try. 87 As hinted in GitHub help: Create a new repository on GitHub. In case you are indeed using the SSH URL, but still are asked for username and password when git pushing: git remote set-url origin should try troubleshooting with: ssh -vT is a piece of sample output.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |