Committing Changes to a Git Repository
All projects imported from GitLab can be found in /projects
. Instructions how to clone a repository from Git can be found here and instructions for working with MAAP GitLab can be found here.
Before you update your project with your changes, you need to get a classic personal access token from GitHub. MAAP currently doesn’t supported fine-grained tokens. Create a classic personal access token by following these steps in Developer settings. Remember to save your personal access token for later use.
Using the left side panel in the Jupyter interface, you can push changes to your Git project whether it is on the MAAP GitLab, or a public repository on GitHub.
If you are more comfortable using the command line to interact with Git, you do not need to use the side panel. It will work the same way in the terminal, once you navigate to the project’s filepath.
When you are ready to update your project with your changes, navigate to the Git panel. Add the files you want to change to the list of staged changes by clicking the + to the right of the file name. Then write a commit message, and blue commit button.
Now you need to push your changes by selecting the push changes button on the toolbar in the upper right.
You will then be prompted for your Git username and personal access token that you got above
If you want to check your commit history, look at branches, and confirm your updates have been pushed, you can see this on the history tab.