-
Notifications
You must be signed in to change notification settings - Fork 597
Workspace Setup
- Overview Open Liberty Development
You should have already cloned the Open Liberty repository as part of cloning and building Open Liberty.
To contribute to open-liberty, you need a fork of the repository.
Navigate to the open-liberty page and click the Fork button in the top upper right corner and select your account as the location to hold the fork. Already have a fork, you say? Well, click the Fork button anyway, and you will see your existing fork.
You need a fork called named <github-user>/open-liberty
- if you see a fork called <something-else>/open-liberty
, this is not what you need for this step.
Your fork is the outbound part of the git triangular workflow. To allow you to push to your fork, we need to add it as a git remote.
cd open-liberty
git remote add my_fork git@github.com:<your username>/open-liberty.git
Next, configure the local repository to push your commits to the fork repository you created above:
git config remote.pushdefault my_fork
This will now pull from origin, the main repository, and push to the fork, your fork repository.
This option requires at least Git 1.8.4. It is also recommended that you configure
git config push.default simple
unless you are already using Git 2.0 where it is the default.
You can run the following command to verify your triangle was created successfully:
git remote -v
You should see output similar to the following:
$ git remote -v
my_fork git@github.com:`<your username>`/open-liberty.git (fetch)
my_fork git@github.com:`<your username>`/open-liberty.git (push)
origin git@github.com:OpenLiberty/open-liberty.git (fetch)
origin git@github.com:OpenLiberty/open-liberty.git (push)
Finally, IBM contributors may need to configure their Artifactory Auth Token.
- Overview Open Liberty Development