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
Fork the repository by clicking on the 'Fork' button on the top right hand side. The fork will happen and you will be taken to your own fork of the repository. Copy the Git repository URL by clicking on the clipboard next to the URL on the right hand side of the page under '**HTTPS** clone URL'. You will paste this URL when doing the following `git clone` command.
28
+
Fork the repository by clicking on the 'Fork' button on the top right hand
29
+
side. The fork will happen and you will be taken to your own fork of the
30
+
repository. Copy the Git repository URL by clicking on the clipboard next to
31
+
the URL on the right hand side of the page under '**HTTPS** clone URL'. You
32
+
will paste this URL when doing the following `git clone` command.
24
33
25
-
On your computer, follow these steps to setup a local repository for working on the Okta Golang SDK:
34
+
On your computer, follow these steps to setup a local repository for working on
It is important that you create a new branch to make changes on and that you do not change the `master`
41
-
branch (other than to rebase in changes from `upstream/master`). In this example I will assume you will be making
42
-
your changes to a branch called `feature_x`. This `feature_x` branch will be created on your local repository and will be pushed to your forked repository on GitHub. Once this branch is on your fork you will create a Pull Request for the changes to be added to the Okta Golang SDK project.
49
+
It is important that you create a new branch to make changes on and that you do
50
+
not change the `master` branch (other than to rebase in changes from
51
+
`upstream/master`). In this example I will assume you will be making your
52
+
changes to a branch called `feature_x`. This `feature_x` branch will be
53
+
created on your local repository and will be pushed to your forked repository
54
+
on GitHub. Once this branch is on your fork you will create a Pull Request for
55
+
the changes to be added to the Okta Golang SDK project.
43
56
44
-
It is best practice to create a new branch each time you want to contribute to the project and only track the changes for that pull request in this branch.
57
+
It is best practice to create a new branch each time you want to contribute to
58
+
the project and only track the changes for that pull request in this branch.
45
59
46
60
```bash
47
61
$ git checkout master
@@ -52,22 +66,30 @@ $ git add <files>
52
66
$ git commit -m "descriptive commit message for your changes"
53
67
```
54
68
55
-
> The `-b` specifies that you want to create a new branch called `feature_x`. You only specify `-b` the first time you checkout because you are creating a new branch. Once the `feature_x` branch exists, you can later switch to it with only `git checkout feature_x`.
69
+
> The `-b` specifies that you want to create a new branch called `feature_x`.
70
+
> You only specify `-b` the first time you checkout because you are creating a
71
+
> new branch. Once the `feature_x` branch exists, you can later switch to it
72
+
> with only `git checkout feature_x`.
56
73
57
74
58
75
Rebase `feature_x` to include updates from `upstream/master`
It is important that you maintain an up-to-date `master` branch in your local repository. This is done by rebasing in
62
-
the code changes from `upstream/master` (the official Okta Java SDK project repository) into your local repository.
63
-
You will want to do this before you start working on a feature as well as right before you submit your changes as a pull request. I recommend you do this process periodically while you work to make sure you are working off the most recent project code.
78
+
It is important that you maintain an up-to-date `master` branch in your local
79
+
repository. This is done by rebasing in the code changes from
80
+
`upstream/master` (the official Okta Golang SDK project repository) into your
81
+
local repository. You will want to do this before you start working on a
82
+
feature as well as right before you submit your changes as a pull request. I
83
+
recommend you do this process periodically while you work to make sure you are
84
+
working off the most recent project code.
64
85
65
86
This process will do the following:
66
87
67
88
1. Checkout your local `master` branch
68
-
2. Synchronize your local `master` branch with the `upstream/master` so you have all the latest changes from the
69
-
project
70
-
3. Rebase the latest project code into your `feature_x` branch so it is up-to-date with the upstream code
89
+
2. Synchronize your local `master` branch with the `upstream/master` so you
90
+
have all the latest changes from the project
91
+
3. Rebase the latest project code into your `feature_x` branch so it is
92
+
up-to-date with the upstream code
71
93
72
94
```bash
73
95
$ git checkout master
@@ -83,36 +105,49 @@ $ git rebase master
83
105
Make a GitHub Pull Request to contribute your changes
When you are happy with your changes and you are ready to contribute them, you will create a Pull Request on GitHub to do so. This is done by pushing your local changes to your forked repository (default remote name is `origin`) and then initiating a pull request on GitHub.
108
+
When you are happy with your changes and you are ready to contribute them, you
109
+
will create a Pull Request on GitHub to do so. This is done by pushing your
110
+
local changes to your forked repository (default remote name is `origin`) and
111
+
then initiating a pull request on GitHub.
87
112
88
-
> **IMPORTANT:** Make sure you have rebased your `feature_x` branch to include the latest code from `upstream/master`
113
+
> **IMPORTANT:** Make sure you have rebased your `feature_x` branch to include
114
+
> the latest code from `upstream/master`
89
115
_before_ you do this.
90
116
91
117
```bash
92
118
$ git push origin master
93
119
$ git push origin feature_x
94
120
```
95
121
96
-
Now that the `feature_x` branch has been pushed to your GitHub repository, you can initiate the pull request.
122
+
Now that the `feature_x` branch has been pushed to your GitHub repository, you
123
+
can initiate the pull request.
97
124
98
125
To initiate the pull request, do the following:
99
126
100
-
1. In your browser, navigate to your forked repository: [https://github.com/YOUR_ACCOUNT/okta-sdk-golang](https://github
101
-
.com/YOUR_ACCOUNT/okta-sdk-golang)
102
-
2. Click the new button called '**Compare & pull request**' that showed up just above the main area in your forked repository
103
-
3. Validate the pull request will be into the upstream `master` and will be from your `feature_x` branch
104
-
4. Enter a detailed description of the work you have done and then click '**Send pull request**'
105
-
106
-
If you are requested to make modifications to your proposed changes, make the changes locally on your `feature_x` branch, re-push the `feature_x` branch to your fork. The existing pull request should automatically pick up the change and update accordingly.
127
+
1. In your browser, navigate to your forked repository:
0 commit comments