Skip to content

Commit cec32cf

Browse files
albinberFraser Greenroyd
authored andcommitted
Small changes, mainly to formatting
1 parent 5afe943 commit cec32cf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/Contributing/Using-Git.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,29 @@
44

55
This documentation will be focused on the use of Git Bash.
66

7-
The first step is to create a space on your computer where you want all your local files to be stored. Now you want to create different repositories (repos) in this folder. Do this by opening up git bash and using `git clone (web address)`. [A good list of repos for getting started can be found here.](https://bhom.xyz/documentation/Contributing/Getting-started-for-developers/)
7+
The first step is to create a space on your computer where you want all your local files to be stored. Now you want to create different repositories (repos) in this folder. Do this by opening up git bash and using `git clone (web address)`. A good list of repos for getting started can be found [here.](https://bhom.xyz/documentation/Contributing/Getting-started-for-developers/)
88

99
## Pushing code changes to GitHub
1010

11-
Before getting started it is recommended to [read through this](https://docs.github.com/en/get-started/quickstart/github-flow) first.
11+
Before getting started it is recommended to read through [this](https://docs.github.com/en/get-started/quickstart/github-flow) first.
1212

1313
Start off by creating a new branch with an [appropriate name.](https://bhom.xyz/documentation/Development/Best%20practices/Branching-Strategy/)
1414

15-
You create a new branch with 'git checkout -b (name of the branch)'. Make sure that you are on develop when creating a new branch to prevent branches created from other branches.
15+
You create a new branch with `git checkout -b (name of the branch)`. Make sure that you are on develop when creating a new branch to prevent branches created from other branches.
1616
It is now time for you to do the changes you wish to do. When you are satisfied with everything it is time make a commit. You should always rebuild the code to make sure that it compiles, and if needed test out the code before pushing it to GitHub.
1717

18-
Start by running 'git status' which will show you, in red, all of the files that has been changed. If everything looks alright use 'git add .' which adds all of the files to the commit. If you wish to only add selected files you can use 'git add (name of the file)' for the files you wish to include.
18+
Start by running `git status` which will show you, in red, all of the files that has been changed. If everything looks alright use `git add .` which adds all of the files to the commit. If you wish to only add selected files you can use `git add (name of the file)` for the files you wish to include.
1919

20-
Once the files are added it can be a good idea to double-check using 'git status' again, and the included files should now be showed in green instead of red.
21-
Then it is time to use commit these changes with 'git commit -m ("message")'. Keep in mind that this message will be shown on GitHub along the commit so a somewhat brief explanation of what is included in the commit can be a good idea.
20+
Once the files are added it can be a good idea to double-check using `git status` again, and the included files should now be showed in green instead of red.
21+
Then it is time to use commit these changes with `git commit -m ("message")`. Keep in mind that this message will be shown on GitHub along the commit so a somewhat brief explanation of what is included in the commit can be a good idea.
2222

23-
Finally it is time to actually push the commit to GitHub with 'git push origin (branch name)'. It is now possible to create a [pull request on GitHub.](https://bhom.xyz/documentation/Contributing/Pull-Requests/)
24-
If you were to need to make any more changes before the PR is merged just make sure you are on your branch for that feature, (no need to create a new branch) and do the necessary changes and then start the push process again, starting with **git status** and 'git add .'.
23+
Finally it is time to actually push the commit to GitHub with `git push origin (branch name)`. It is now possible to create a [pull request on GitHub.](https://bhom.xyz/documentation/Contributing/Pull-Requests/)
24+
If you were to need to make any more changes before the PR is merged just make sure you are on your branch for that feature, (no need to create a new branch) and do the necessary changes and then start the push process again, starting with `git status` and `git add .`.
2525

2626

2727
## Avoiding conflicts
2828

2929
In order to avoid conflicts when creating pull requests make sure that the repository you are working on is up to date.
30-
Make sure you are on the develop branch by using 'git checkout develop'
31-
Start off by using **git fetch origin** which gets updates from other repositories and then 'git pull origin (branch name)' to then update your code from others.
30+
Make sure you are on the develop branch by using `git checkout develop`
31+
Start off by using `git fetch origin` which gets updates from other repositories and then `git pull origin (branch name)` to update your code from others.
3232

0 commit comments

Comments
 (0)