自从开始学习编程,就有一个问题,我从Github上Fork的文件,万一作者更新了怎么办呢?
我做了几个设想,当了一次设计者。可是每一种设想都不行,想找一个方法吧,不知道怎么做,笨鸟先飞,从头学吧,好在第二节课老师给了解决方案,链接是英文。
Syncing your fork to the original repository via the browser
读了一遍没读懂,第二遍懂了。可是不明白原理,胆战心惊地跟下来,竟然成功了。
原来是反过来,先做个比较,如果作者增删了新的章节,作者给你提pull request 。
Note that this pull request is to you! So you can confirm that it's ok and merge it when necessary.
真是绝妙的思路。困惑了5个月的问题解决了。
PS C:\Users\Administrator.DESKTOP-750NNGE\Code\pilot-student> git pull
Already up to date.
PS C:\Users\Administrator.DESKTOP-750NNGE\Code\pilot-student> jupyter lab
[I 19:26:21.402 LabApp] JupyterLab extension loaded from c:\users\administrator.desktop-750nnge\scoop\apps\python37\current\lib\site-packages\jupyterlab
[I 19:26:21.402 LabApp] JupyterLab application directory is c:\users\administrator.desktop-750nnge\scoop\apps\python37\current\share\jupyter\lab
[I 19:26:22.090 LabApp] Serving notebooks from local directory: C:\Users\Administrator.DESKTOP-750NNGE\Code\pilot-student
[I 19:26:22.090 LabApp] The Jupyter Notebook is running at:
[I 19:26:22.090 LabApp] http://localhost:8888/?token=0da14bbbcce3eaeee88fca8c32b905f3a77206c7b9663b28
[I 19:26:22.090 LabApp] or http://127.0.0.1:8888/?token=0da14bbbcce3eaeee88fca8c32b905f3a77206c7b9663b28
[I 19:26:22.090 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 19:26:22.215 LabApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Administrator.DESKTOP-750NNGE/AppData/Roaming/jupyter/runtime/nbserver-2756-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=0da14bbbcce3eaeee88fca8c32b905f3a77206c7b9663b28
or http://127.0.0.1:8888/?token=0da14bbbcce3eaeee88fca8c32b905f3a77206c7b9663b28
[I 19:26:29.068 LabApp] Build is up to date
[W 19:26:30.418 LabApp] Notebook p1-1-understanding-programming-languages.ipynb is not trusted
[I 19:26:31.853 LabApp] Kernel started: f76e66c8-610a-48bb-a664-faaefa24bcb9
[I 19:26:31.924 LabApp] Kernel started: 3c223271-508d-4441-b5db-461923caff04
再把本地的文档更新一下,打开jupyter lab,在浏览器Chrome里就可以看到最新文档了,最近下载了Google浏览器Chrome。
注意到,我的仓库里没有issue,后来发现merge之后就自动关闭了,可以在Closed里找。
网友评论