Fork
button in the top right of this pagePull Requests
(which is the third option at the top of this page after the options Code
and Issues
) and raise a Pull Request by clicking the green New Pull Request
button and selecting your fork from the right drop down field.Questions can be asked by raising an Issue
.
Click on the green Code
button, then either the HTTPS
or SSH
option and click the icon to copy the URL. This will give you a copy of the project, so you can play around with it locally on your computer.
Using Git on your local machine and paste in the URL. Do this to download the forked copy of this repo to your computer.
1
git clone https://github.com/yourGithubUsername/dsc-srmrmp.github.io.git
1
cd dsc-srmrmp.github.io
1
git checkout -b <name-of-new-branch>
1
git add .
1
git commit -m "Add <your-github-username>"
1
git status
1
2
On branch <name-of-your-branch>
nothing to commit, working tree clean
1
git push origin <name-of-your-branch>
or
1
2
git branch -M main
git push -u origin main
In case you get an error message like the one below, its likely you forgot to fork the repo before cloning it. To fix this, its best to start over with the How to Contribute section above, and fork the project repo first.
1
2
3
ERROR: Permission to dsc-srmrmp/dsc-srmrmp.github.io denied to <your-github-username>.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
On the GitHub website, navigate to your forked repo - on the top of the files section you’ll notice a new section containing a Compare & Pull Request
button!
Click on that button and this will load a new page, comparing the local branch in your forked repo, against the main branch in the dsc-srmrmp.github.io repo. Accept the default values in the drop down boxes and click the green Create Pull Request
button. After creating the PR (Pull Request) our GitHub Actions workflow will add a welcome message to your PR.
Note: A pull request allows your changes to be merged with the original project repo.
Wait for your changes to be merged.
Hurray! You successfully made a contribution! 🎉
A GitHub conflict is when people make changes to the same area or line in a file. This must be fixed before it is merged in order to prevent collision in the main branch.