You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
3
4
4
5
If you haven't already, join the conversation in [our Discord server](https://discord.gg/acVJSXP). Let us know what you want to add to this project. If you need help with making a contribution, feel free to ask.
5
6
6
7
Thanks for showing interest to help grow Developers Circle Nepal.
7
8
8
9
## Forking and cloning
10
+
9
11
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](https://help.github.com/articles/fork-a-repo/) for info on how to do that.
10
12
11
13
If you followed the guide (replacing the example repo with DCN repo), you should have two copies of the DCN repository:
14
+
12
15
- one in your GitHub account (`github.com/YOUR-USERNAME/dev.circle.github.io`)
13
16
- one local copy within a folder called `dev-circle-np.github.io`.
14
17
15
18
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](https://help.github.com/articles/fork-a-repo/#step-3-configure-git-to-sync-your-fork-with-the-original-spoon-knife-repository) of the guide.
16
19
17
20
## Working with a local copy
21
+
18
22
**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:
19
23
20
24
1. Open Git Shell and navigate to the repository
21
25
2. Make sure you are on the master branch, using `git status`:
22
26
23
-
```
27
+
```python
24
28
On branch master
25
29
Your branch is up to date 'origin/master'
26
30
```
27
-
31
+
28
32
3. If you are not on master, use `git checkout master`
33
+
29
34
4. Do a `pull` with rebase against `upstream`:
30
35
`git pull --rebase upstream master`
31
36
This will sync your local repo with the original master without making an additional commit locally.
32
37
5. Create a branch off of master with: `git checkout -B branchname` replacing `branchname` 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 as `navbar-styling`.
33
38
6. Now you're ready to make some changes to your local files!
34
39
35
40
## Pushing changes to your GitHub fork
41
+
36
42
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?
37
43
38
44
1. Run `git status` and you'll see all the files you've changed and haven't staged yet.
@@ -42,10 +48,11 @@ Alright, so you've made some changes in your local copy of the DCN repo, tested
42
48
5. 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.
43
49
44
50
## Submitting a pull request
51
+
45
52
Once you've got your changes pushed to your fork of the DCN repo on GitHub, it's time to [submit a pull request](https://help.github.com/articles/creating-a-pull-request/).
46
53
47
54
The name of your pull request (PR) should give us an idea of the changes you've made, such as `add styling to navbar`.
48
55
49
56
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
50
57
51
-
If your PR is not accepted, we'll let you know what changes need to be made.
58
+
If your PR is not accepted, we'll let you know what changes need to be made.
0 commit comments