Whether you're new to GitHub and looking for experience or just want to help out, we welcome your contribution. This project is meant to give contributors an introduction into the world of code collaboration as well as basic web development.
If you haven't already, join the conversation in our Discord server. Let us know what you want to add to this project. If you need help with making a contribution, feel free to ask.
Thanks for showing interest to help grow Developers Circle Nepal.
In order to submit changes to the DCN repository, you'll need to fork the repository and maintain a local copy of it. Check out GitHub's guide to forking for info on how to do that.
If you followed the guide (replacing the example repo with DCN repo), you should have two copies of the DCN repository:
- one in your GitHub account (
github.com/YOUR-USERNAME/dev.circle.github.io
) - one local copy within a folder called
dev-circle-np.github.io
.
Your local repo's upstream
should be set to https://github.com/dev-circle-np/dev-circle-np.github.io.git
, like the example in this section of the guide.
Note: Make sure your master branch is synced to the original DCN repository and that you are working on a separate branch before you start making changes to your local repository. Here are the steps to follow:
-
Open Git Shell and navigate to the repository
-
Make sure you are on the master branch, using
git status
:On branch master Your branch is up to date 'origin/master'
-
If you are not on master, use
git checkout master
-
Do a
pull
with rebase againstupstream
:git pull --rebase upstream master
This will sync your local repo with the original master without making an additional commit locally. -
Create a branch off of master with:
git checkout -B branchname
replacingbranchname
with the name of your new branch. Use a name that gives an idea of what feature or fix you are going to implement such asnavbar-styling
. -
Now you're ready to make some changes to your local files!
Alright, so you've made some changes in your local copy of the DCN repo, tested your changes on your browser and you're ready to submit those changes for all to see. Now what?
- Run
git status
and you'll see all the files you've changed and haven't staged yet. - Add your changed files to be staged with:
git add path/to/filename.ext
You can also do:git add .
to add all unstaged files. Checkgit status
before doing adding all unstaged files, as you may end up staging some unwanted files. - Commit your edits:
git commit -m "commit description"
- Squash your commits, if there are more than one.
- Push your commit to your fork on GitHub:
git push -u origin master
. The branch name should be the same as the branch you were working with.
Once you've got your changes pushed to your fork of the DCN repo on GitHub, it's time to submit a pull request.
The name of your pull request (PR) should give us an idea of the changes you've made, such as add styling to navbar
.
If your PR is meant fix a specific issue, add closes #123
in the description of your PR where #123
is the issue number. This will allow GitHub to automatically close the issue once your PR is merged
If your PR is not accepted, we'll let you know what changes need to be made.