Access the extension by simply clicking on the git icon on the left-hand side of your screen in Jupyter Lab (you should see something like the screenshot below). ![]() The extension is a user-friendly add-on for JupyterLab that lets you do basic git actions with a point-and-click interface. SESYNC’s Jupyter Lab server has the JupyterLab git extension enabled. Once created, you’ll see a page like the one below.Ĭopy the highlighted repository URL which you will use to clone your remote repository. People typically create one repository per project.Ĭreate a repository on GitHub. You can storeįiles, look at historical changes to these files, open issues, discuss changesĪnd more. The terminal will open in a new tab.Ī GitHub repository is like a supercharged folder in the cloud. You can start the terminal form the JupyterLab launcher. Git config -global user.name email address used should match the email address of yout GitHub account. Git config -global user.name "FirstName LastName" You can access the prompt from JupyterLab’s Terminal tab. Enter the following into your terminal prompt. If you are doing this lesson on your local machine, we recommend setting the default branch name for new repositories you create to main. You should also be aware that any documentation, tutorial, or StackOverflow post written before 2020 will assume your default branch is called master. However, the git client will still default to master if you create a repository locally, unless you configure it as described below. SESYNC is planning to update the GitLab server to match this new default. The change was made to promote inclusive language in the version control world. Setup gitĪs of October 1, 2020, all new repositories created on GitHub will have a default branch called main. To create a GitLab account please visit GitLab. To create a GiHub account please visit GitHub. You will need to create a remote repo on GitHub or GitLab. To sync your local repository to a remote repository, Easily share your notebooks for others to view.Get feedback & discuss notebook changes with your peers.Start versioning your notebooks + learn how to revert to a specific notebook version. ![]() Push your notebooks to a GitHub repository.How to manage Jupyter projects with git.How to use git commands directly on the command line.This lesson presents an introduction to using git in a Jupyter environment. ![]() Handouts for this lesson need to be saved on your computer.Īnd unzip this material into the directory (a.k.a. Note: This lesson is in alpha status! It may have issues that have not been addressed.
0 Comments
Leave a Reply. |