Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pytreat-practicals-2020
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
pytreat-practicals-2020
Commits
4a35063a
Commit
4a35063a
authored
5 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
more instructiond
parent
28f99c95
No related branches found
No related tags found
1 merge request
!4
more instructions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+57
-19
57 additions, 19 deletions
README.md
with
57 additions
and
19 deletions
README.md
+
57
−
19
View file @
4a35063a
...
@@ -65,16 +65,43 @@ https://git.fmrib.ox.ac.uk/fsl/pytreat-practicals-2020
...
@@ -65,16 +65,43 @@ https://git.fmrib.ox.ac.uk/fsl/pytreat-practicals-2020
Updates to the master branch should occur via merge requests. You can choose
Updates to the master branch should occur via merge requests. You can choose
to either work on a
fork of
this repository,
or
on a
branch in
this
to either work on a
branch within
this repository, on a
fork of
this
repository.
To contribute to the practicals using a fork:
repository.
### Using a branch within this repository
1.
Make a local clone of the repository:
```
git clone https://git.fmrib.ox.ac.uk/fsl/pytreat-practicals-2020.git
```
2.
Create a branch for your work:
```
git checkout -b my_cool_branch origin/master
```
3.
Make your changes on this branch.
4.
Push your changes to the gitlab repository:
```
git push origin my_cool_branch
```
5.
In gitlab, submit a merge request from your branch onto the master
branch.
### Using a fork of this repository
1.
Fork the upstream repository on gitlab
1.
Fork the upstream repository on gitlab
2.
Make a local clone of your fork:
2.
Make a local clone of your fork:
```
```
git clone https://git.fmrib.ox.ac.uk/
fsl
/pytreat-practicals-2020.git
git clone https://git.fmrib.ox.ac.uk/
<your_username>
/pytreat-practicals-2020.git
```
```
3.
Add the upstream repository as a remote:
3.
Add the upstream repository as a remote:
...
@@ -95,30 +122,41 @@ repository. To contribute to the practicals using a fork:
...
@@ -95,30 +122,41 @@ repository. To contribute to the practicals using a fork:
repository.
repository.
Or, to contribute via a branch:
### Updating your local repository
1.
Make a local clone of the repository:
To bring in the changes that other people have contributed to the main
repository into your local repository:
```
git clone https://git.fmrib.ox.ac.uk/fsl/pytreat-practicals-2020.git
```
2.
Create a branch for your work:
```
git fetch --all
```
# make sure you are on the correct local branch - if you followed the
git checkout -b my_cool_branch origin/master
# instructions above and are working on a fork of the main repository:
```
git checkout master
3.
Make your changes on this branch.
# Or if you are working on a branch within the main repository:
git checkout my_cool_branch
4.
Push your changes to the gitlab repository:
# Do this if you are working on a fork of the main repository
git merge upstream/master
```
# Or do this if you are working on a branch within the main repository
git push origin my_cool_branch
git merge origin/master
```
```
5.
In gitlab, submit a merge request from your branch onto the master
branch.
> Or, if you are comfortable with git, `rebase` is so much cooler:
>
> ```
> git fetch --all
>
> # replace <branch_name> with your local branch name
> git rebase <remote_name>/master
>
> # replace <remote_name> with the main repository name
> git rebase <remote_name>/master
> ```
You may also wish to install
You may also wish to install
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment