Skip to content

Commit 537ce3a

Browse files
authored
Minor changes for the code to appear correctly
1 parent cb28a20 commit 537ce3a

File tree

1 file changed

+26
-30
lines changed

1 file changed

+26
-30
lines changed

Diff for: steps2github.md

+26-30
Original file line numberDiff line numberDiff line change
@@ -26,83 +26,79 @@ The next step is to get your copy of the repository onto your computer:
2626

2727
2. Clone there the repository, from your OWN local repository:
2828

29-
`
30-
git clone https://[git username]@github.com/[git username]/[batlab repo name]
31-
`
29+
`git clone https://[git username]@github.com/[git username]/[batlab repo name]`
3230

3331
You'll be prompt for your GitHub username and password.
3432

3533
## Updating your a repository copy.
3634

3735
Ensure that the remote is the correct one:
38-
`
39-
git remote -v
40-
`
36+
37+
`git remote -v`
4138

4239
If you need to reset the remote link:
43-
`
44-
git remote set-url origin https://[git username]@github.com/[git username]/
45-
`
40+
41+
`git remote set-url origin https://[git username]@github.com/[git username]/`
4642

4743
Update your personal copy:
4844

49-
`
50-
git push origin master
51-
`
45+
`git push origin master`
5246

5347
## Track upstream: keeping your copy up-to-date with the main one
5448

5549
This instructions follow the recommendations on [syncing a fork from GitHub](ttps://help.github.com/articles/syncing-a-fork/). To make sure that your version remains up to date with
5650
the master version, set the upstream tracking on the command line:
5751

58-
`
59-
git remote add --track master upstream https://[git username]@github.com/BatLabLancaster/[batlab repo name]
60-
`
52+
`git remote add --track master upstream https://[git username]@github.com/BatLabLancaster/[batlab repo name]`
6153

6254
Now, every time you need to apply the changes that have been made to the master version to yours, navigate to your a repository directory and run on the command line:
6355

64-
`
56+
```
6557
git fetch upstream
6658
git merge upstream/master
67-
`
59+
```
6860

6961
## Working on a new (big) feature
7062

7163
### Branch, contribute and Commit
7264

7365
To start working on new feature, create a separate feature branch:
7466

75-
`git checkout -b feature`
67+
`git checkout -b feature`
7668

7769
You can check the branches you have by:
7870

79-
`git branch`
71+
`git branch`
8072

8173
And switch between them with:
82-
`
83-
git checkout master
84-
git checkout feature
85-
`
74+
75+
```
76+
git checkout master
77+
git checkout feature
78+
```
79+
8680
Once some changes have been made in the branch, stage them
8781
and commit:
88-
`
89-
git add .
90-
git commit -m "Add a comment here"
91-
`
82+
83+
```
84+
git add .
85+
git commit -m "Add a comment here"
86+
```
87+
9288
### (Merge and) Push
9389

9490
You can push changes with:
9591

96-
`git push origin feature`
92+
`git push origin feature`
9793

9894
Alternatively, you can merge the changes with the master
9995
branch first, and then push:
10096

101-
`
97+
```
10298
git checkout master
10399
git merge feature
104100
git push origin master
105-
`
101+
```
106102

107103
## Submit a Pull Request
108104

0 commit comments

Comments
 (0)