这是indexloc提供的服务,不要输入任何密码
Skip to content

Getting Started

First, create a GitHub account for free.

Contribute Online

GitHub makes this extremely easy.

For small changes in one file:

  1. Go to the file you'd like to modify and click on "Edit".
  2. Do your changes and commit them. GitHub will guide you and suggest to open a Pull Request.

For more complex changes or across files:

  1. Press . while browsing the repo or pull request.
  2. You'll be welcomed with a "github.dev Web-based Editor" where you can work using an online Visual Studio.
  3. Do your changes, commit and push them as you'd do locally.

github.dev

Learn more about the github.dev Web-based Editor in "GitHub Docs".

Finally, you'll be prompted to open a Pull Request (PR). Please follow the PR guidelines when opening a PR and get your Pull Request reviewed.

Contribute Offline

For this you need an IDE or text editor and git on your machine. We recommend using the free Visual Studio Code editor with the markdownlint extension.

  1. Fork the repo. Forking the repo allows you to make your changes without affecting the original project until you're ready to merge them.
  2. Clone your fork repo and add the remote upstream repo, e.g. for the OWASP MASTG:

    $ git clone https://github.com/<your_github_user>/mastg.git
    $ cd mastg/
    $ git remote add upstream [email protected]:OWASP/mastg.git
    
  3. Create a branch.

    $ git checkout -b fix-issue-1456
    
  4. Make your changes.

  5. Commit and push your changes. This can be done by executing the command git add MYFILE for every file you have modified, followed by git commit -m 'Your Commit Message' to commit the modifications and git push to push your modifications to GitHub.
  6. Open a PR.
  7. Get your PR reviewed.