r/IPython • u/Steamnach • Nov 27 '18
Jupyter notebook sync
I have a problem where I cannot sync my Jupyter notebook on GCloud with my github repository, do I have to upload a Jupyter notebook on github? Cloning didn't work either. Thanks in advance.
3
Upvotes
View all comments
Show parent comment
2
u/NomadNella Nov 29 '18
Sorry about that. I only familiar with the basics of git, but the general command line procedure is,
There are a few ways to increase the efficiency of this process if you are adding multiple files like using
.to add all files that have changed. However, that can have unintended consequences like inadvertently adding files that contain private information. You can add a filter to prevent this by creating a.gitignorefile with the filenames you don't ever want to be added.I have only ever used git on a Linux system which allows one additional alternative,
git guiwhich is a gui interface for git. I think there is on Windows but I don't know about GCloud.There are some descriptions of the git terminal commands here. Unfortunately, I have never found a simple tutorial on the basic use of git. Github does have help here which may be more useful than just the command descriptions.
As for a script, this is something I have only heard about other people doing. I'm not sure how you would make it work without using an SSH key to avoid having to enter a password when pushing to master. I have an aversion to SSH keys on git since I am not sure how to make that work across multiple computers with the same account, so I don't have any experience with those.