Welcome to your Benzinga contribution. 😃
-
If you are new to Git and Gitlab, it is advisable you go through this link before moving to the next step.
-
Clone the project.
-
Create a branch specific to the issue you are working on.
git checkout -b update-readme-file
For clarity to yourself and others on the issue you're working on, name your branch something like
update-xxx
orfix-xxx
wherexxx
is a short description of the changes you're making. For exampleupdate-readme
orfix-typo-on-contribution-md
. -
Open up the project in your favourite text editor, select the file you want to contribute to and make your changes.
-
After making your changes in the new git branch then add your modified files to git, How to add, commit, push and go
git add path/to/filename.ext
You can also add all unstaged files using:
git add .
Note, using a
git add .
will automatically add all files. You can do agit status
to see your changes, but do it beforegit add
. -
Commit your changes using a descriptive commit message with JIRA issue ID.
git commit -m "EVENTS-125: BZ Awards Competition Leveling the Playing Field"
Where EVENTS-125: would be ID of issue on JIRA.
-
Push your commits to your Gitlab repo:
git push -u origin branch-name
-
Submit a merge request.
Within Gitlab, visit this main repository and you should see a banner suggesting to make a merge request. While you're writing up the merge request, you can add
Closes #XXX
in the message body where#XXX
is the issue you're fixing. So an example would beCloses #42
would close issue#42
.
What is a merge request? Visit link
If you want to contribute, you need to know a few things. Code of conduct
Thanks! 😃