设置';上游';我的计算机上git的设置(使用命令行)?

设置';上游';我的计算机上git的设置(使用命令行)?,git,github,ssh,Git,Github,Ssh,我在为git设置上游设置(和源代码)时遇到了一些困难,使用remotes和w/o使用gui(尝试在这里突破)。我的教授说git没有正确地为我做这件事是很奇怪的……甚至怀疑可能是git为我设置了SSH——但是现在命令行客户端没有“理解” 有人知道如何摆脱这一困境吗 目前,我得到的是: P$ C:\Users\SomeFolder\MyName> git remote -v MyName https://github.com/MyName/ClassFolder/tree/master/st

我在为git设置上游设置(和源代码)时遇到了一些困难,使用remotes和w/o使用gui(尝试在这里突破)。我的教授说git没有正确地为我做这件事是很奇怪的……甚至怀疑可能是git为我设置了SSH——但是现在命令行客户端没有“理解”

有人知道如何摆脱这一困境吗

目前,我得到的是:

P$ C:\Users\SomeFolder\MyName> git remote -v 
MyName https://github.com/MyName/ClassFolder/tree/master/students (fetch)
MyName https://github.com/MyName/ClassFolder/tree/master/students (push)
upstream https://github.com/MyName/ClassFolder (fetch)
upstream https://github.com/MyName/ClassFolder (push)

P$ C:\Users\SomeFolder\MyName> git push MyName
warning: push function is unset; its implicit value is changing in Git 2.0 from matching to simple....
但我需要的是让它看起来像这样:

$ git remote -v

origin  https://github.com/MyName/IntroToPython.git (fetch)
origin  https://github.com/MyName/IntroToPython.git (push)
upstream    https://github.com/ClassFolder/IntroToPython.git (fetch)
upstream    https://github.com/ClassFolder/IntroToPython.git (push)
添加源远程,因为它不存在 设置现有远程服务器的url 删除未使用的遥控器 看

笔记 要为远程服务器设置的URL:

https://github.com/MyName/IntroToPython.git
这是克隆的格式。你可以拉,但不能推。推动它应该是

git@github.com:MyName/IntroToPython.git
git remote -d MyName
https://github.com/MyName/IntroToPython.git
git@github.com:MyName/IntroToPython.git