Add instructions on how to make a private fork

This commit is contained in:
Andrew Eisenberg
2020-06-29 22:15:26 -07:00
committed by GitHub
parent 3eacf6164a
commit f25ed2f04d

View File

@@ -16,6 +16,17 @@ A starter workspace to use with the [CodeQL extension for Visual Studio Code](ht
- The folders named `codeql-custom-queries-<language>` are ready for you to start developing your own custom queries for each language, while using the standard libraries. There are some example queries to get you started.
1. Follow the [documentation for the CodeQL extension](https://help.semmle.com/codeql/codeql-for-vscode.html) to learn how to set up the extension, add a database and run queries against it. Have fun!
## Using the `vscode-codeql-starter` in a private repository
If you want to privately share your Code QL queries with your teammates using this project as a template:
1. Create an empty, private project in the organization you want.
1. Clone this project locally: `git clone git@github.com:github/vscode-codeql-starter.git`
1. Add a remote to the local copy `git remote add my-org git@github.com:<MY-ORG>/vscode-codeql-starter.git`
1. Push the code to the new remote: `git push my-org master`
GitHub does not allow private forks of public repositories.
## Contributing
This project welcomes contributions. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.