Estoy teniendo problemas para configurar los ajustes de upstream (y origen) para git usando controles remotos y sin utilizar la interfaz gráfica de usuario (tratando de liberarse aquí). Mi profesor dijo que era extraño que git no lo hiciera correctamente para mí … y que incluso haya sospechado que el gitHub para Windows GUI clinet puede haber configurado SSH para mí, pero ahora el cliente de command-line no "obtiene" eso".
¿Alguien sabe una forma de salir de este lío?
Actualmente, esto es lo que obtengo:
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....
LO que necesito, sin embargo, es que se vea así:
$ 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)
git remote add origin https://github.com/MyName/IntroToPython.git
git remote set-url upstream https://github.com/ClassFolder/IntroToPython.git
git remote -d MyName
Ver git-remote .
La URL que pretendes configurar para tu control remoto:
https://github.com/MyName/IntroToPython.git
Está en el formatting para clonación. Puedes tirar, pero no presionar. Para empujarlo debería ser
git@github.com:MyName/IntroToPython.git