githubの一般的なエラーとその解決方法
最近Githubを使っていますが、初心者なので、いろいろな問題があって、まる3日間で解決しました(多くの資料を調べました)、githubを使っているうちに遭遇する可能性のある問題と解決策をまとめて、皆さんが調べるのに便利です.
githubの使用については、クリックしてリンクを開くを参照してください
githubの使用については、クリックしてリンクを開くを参照してください
:
$ git remote add origin [email protected]:djqiang(github )/gitdemo( ).git
:fatal: remote origin already exists.
:
1、 $ git remote rm origin
2、 $ git remote add origin [email protected]:djqiang/gitdemo.git !
3、 $ git remote rm origin ,error: Could not remove config section ‘remote.origin’. gitconfig
4、 github , C:\Users\ASUS\AppData\Local\GitHub\PortableGit_ca477551eeb4aea0e4ae9fcd3358bd96720bb5c8\etc
5、 gitconfig , [remote "origin"] !
$ ssh -T [email protected]
:Permission denied (publickey). key ssh github。
:
1、 $ ssh-agent, $ ssh-add ~/.ssh/id_key, 。
2、 , ssh-add ~/.ssh/id_key Could not open a connection to your authentication agent. key Git Gui ssh , key ssh , ssh-add , user,token 。
3、 id_rsa.pub , 。
$ git push origin master
:error:failed to push som refs to …….
:
1、 $ git pull origin master // github
2、 $ git push origin master
3、 fatal: Couldn’t find remote ref master fatal: ‘origin’ does not appear to be a git repository fatal: Could not read from remote repository.
4、 $ git remote add [email protected]:djqiang/gitdemo.git
git
$ makdir ~/hello-world // hello-world
$ cd ~/hello-world //
$ git init //
$ touch README
$ git add README // README
$ git commit -m ‘first commit’ // , “first commit”
$ git remote add origin [email protected]:defnngj/hello-world.git // github
$ git push -u origin master // github