简体   繁体   English

我如何连接Git和Github

[英]How can i connect Git and Github

For connecting both git and github. 用于连接git和github。 First I entered user mail and username and later created a folder in the git folder and located newly created path in git bash and then I entered git init then am getting PERMISSION DENIED. 首先我输入了用户邮件和用户名,后来在git文件夹中创建了一个文件夹,并在git bash中找到了新创建的路径,然后我输入了git init然后得到了PERMISSION DENIED。 Can any one help me with this ? 谁能帮我这个 ?

It depends on your OS, but the general answer is: 这取决于您的操作系统,但一般的答案是:

  • First make sure you can create a folder ( mkdir test ) 首先确保你可以创建一个文件夹( mkdir test
  • Once that is working, then you can use git init myNewRepo 一旦它工作, 那么你可以使用git init myNewRepo
  • And then you can start linking it to GitHub: 然后你可以开始将它链接到GitHub:

     cd myNewRepo git remote add origin https://github.com/<me>/<myNewRepo> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM