Contributing to the automotive-sig repository¶
Cloning the main repository¶
- From GitLab, click Clone and copy the URL of the Automotive SIG repository. You can choose either SSH or HTTPS.
- From a terminal window, clone the repository locally:
git clone <url> <shortname>
git clone firstname.lastname@example.org:centos/automotive/sample-images.git origin
Creating a fork¶
- From GitLab, click Fork.
- Optional: Enter a project name. If you don’t enter a project name, the fork inherits the name of the origin.
- Select your name from the namespace menu.
- Optional: Enter a project description.
- Select your preferred visibility level.
- Click Fork project to create your fork.
Adding your fork as a remote¶
- From GitLab, click Clone and copy the URL of your fork. You can choose either SSH or HTTPS.
- From a terminal window, go to your clone of the automotive-sig repository and add your fork as a remote repository:
git remote add <fork-shortname> <url>
git remote add myfork email@example.com:your-name/your-automotive-sig.git
- Optional: Confirm that you added your fork as a remote:
git remote -v
You can run this command at any time to view details about all of the remotes in the cloned repository.
Contributing to the repository¶
Create a dedicated branch on your fork:Example:
git checkout -b <branch>
git checkout -b my-branch
Push updates to your fork:Example:
git push <fork-shortname> <branch>
git push myfork my-branch
- From the Automotive-SIG repository, click New merge request.
- Select the main branch of the Automotive-SIG repository as the target.
- Select the following merge options:
- Delete source branch when merge request is accepted.
- Squash commits when merge request is accepted.
- Request a review from someone with maintainer rights so that they can review and merge your changes.