How do I connect my python spyder with github? How do I connect my python spyder with github? python python

How do I connect my python spyder with github?


A command line git has been integrated into Spyder.

https://github.com/spyder-ide/spyder/issues/6105

First right click the tab corresponding to any file in your repository and click "set console working directory."

Then go to the Ipython window in Spyder and simply type your git commands (assuming Git is installed and its paths are configured properly) but append a "!" to the beginning of your command:

!git add "file.py"!git commit -m "My commit"!git push origin master


(Spyder developer here) I'm sorry but right now (February 2017) there's no integration between Spyder and Git/Github.

Besides, there are no concrete plans to add this support. We could it in a year or year and a half.

Related issue on github: https://github.com/spyder-ide/spyder/issues/816


+1 @betontalpfa. For me, I wanted to put a local file to an existing Github.com repository through Spyder ipython console.

So, instead of clicking "set console working directory", I just did the following in ipython console within Spyder (I'm on Mac OSX Mojave, and have installed Xcode already from the Appstore):

  • Init working directory as a git directory

    !git init
  • Pull existing repository to merge with files you want to push

    !git remote add origin https://github.com/myUserName/sample.git
  • Add the file to local git

    !git add temp.py
  • Push the file to github.com

    !git push -u origin master