Repository navigation
Add Gitlab as an alternative to GitHub (ref #535) #540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b9904b1
Add GitLab to "Browsing" chapter
frankier dec005d
Add commits page
frankier 9d215c2
Add archaeology page
frankier fadfbfa
Fix formatting in local-workflow
frankier 02655c0
Add a note on GitHub and GitLab to the teaching guide
frankier 102a934
Add more instructions about how to search for salt on GitLab
frankier 7526650
Add missing image showing where the "Browse files" button is on GitLab
frankier 2da7732
Add fixes to GitLab instruction from Copilot review
frankier 46920db
add screenshots from gitlab
MaritJenssen be1fc44
add .venv
MaritJenssen 797bacf
add gitlab instructions
MaritJenssen 7e06a72
Resolve conflicts with main
MaritJenssen d6c5dde
Potential fix for pull request finding 'Fork incorrectly identified a…
dianaiusan 0680c4a
Potential fix for pull request finding 'Objective omits GitLab merge …
dianaiusan 48b3718
Potential fix for pull request finding 'GitLab selector uses incorrec…
dianaiusan d726722
Potential fix for pull request finding 'GitLab instructions incorrect…
dianaiusan 816191d
Potential fix for pull request finding 'Unclosed quote around project…
dianaiusan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ _build/ | |
| build/ | ||
| .ipynb_checkpoints | ||
| /venv* | ||
| /.venv/ | ||
| .jupyter_cache | ||
| jupyter_execute | ||
| /content/__pycache__/ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,13 +35,17 @@ From a bunch of files to a local repository which we then share on GitHub. | |
| 2. Turn this new directory into a Git repository. | ||
| 3. Share this repository on GitHub (or GitLab, since it really works the same). | ||
|
|
||
| We offer **three different paths** of how to do this exercise. | ||
| We offer **five different paths** of how to do this exercise. | ||
| * Via **GitHub web interface**: easy and can be a good starting point if you are completely | ||
| new to Git. | ||
| * Via **GitLab web interface**: similar to the GitHub path; create a blank | ||
| project, initialize it with a README file, and upload your project files. | ||
| * **VS Code** is quite easy, since VS Code can offer to create the | ||
| GitHub repositories for you. | ||
| * **Command line**: you need to create the | ||
| repository on GitHub and link it yourself. | ||
| * **RStudio**: initialize Git for your project, connect it to an empty | ||
| repository on GitHub or GitLab, and use RStudio's Push and Pull buttons. | ||
|
Comment on lines
+47
to
+48
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably easier to just keep this GitHub only in that case |
||
|
|
||
| ::::{tabs} | ||
|
|
||
|
|
@@ -80,6 +84,33 @@ Click on the "+" symbol and then on "Upload files". | |
| ``` | ||
| ::: | ||
|
|
||
| :::{group-tab} GitLab | ||
| **Create a repository on GitLab** | ||
| First log in to GitLab, then follow the screenshots and descriptions below. | ||
| ```{figure} img/gitlab/sharing-projects-annotated.png | ||
| :alt: Screenshot on GitLab where we start creating a new project. | ||
| :width: 100% | ||
| :class: with-border | ||
| ``` | ||
| After clicking "Create project", click "Create blank project". | ||
|
|
||
| ```{figure} img/gitlab/sharing-create-project-annotated.png | ||
| :alt: Screenshot on GitLab where we create a new project. | ||
| :width: 100% | ||
| :class: with-border | ||
| ``` | ||
| *Choose a project name, add your username under "project URL", choose "Public", and add a README file. Finally "Create project".* | ||
|
|
||
| **Upload your files** | ||
| Now that the project is created, you can upload your files: | ||
| ```{figure} img/gitlab/sharing-upload-file-annotated.png | ||
| :alt: Screenshot on GitLab where we upload files. | ||
| :width: 100% | ||
| :class: with-border | ||
| ``` | ||
| ::: | ||
|
|
||
|
|
||
| :::{group-tab} VS Code | ||
| In VS Code it only takes few clicks. | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.