You must have the proper permissions for any action to use the equivalent query parameter. Using a URL query, the teacher can create a link that pre-fills the repository name, description and visibility fields and share it with the whole class. For example, a teacher may want each student in a class to create a repository in their personal account with the same name, description and visibility. Pre-filling form fields with a URL query may be useful if you often want to create repositories with the same default settings. To specify values for the predefined query parameters, you must match the key and value pair. Query parameters are optional parts of a URL you can customize to share a specific web page view, such as search filter results or an issue template on GitHub. You can use query parameters to pre-fill form fields when creating a new repository. To do so, click Import code.Ĭreating a new repository from a URL query Optionally, if the personal account or organization in which you're creating uses any GitHub Apps from GitHub Marketplace, select any apps you'd like to use in the repository.Īt the bottom of the resulting Quick Setup page, under "Import code from an old repository", you can choose to import a project to your new repository. For more information, see " Licensing a repository." You can choose to add a software license for your project.For more information, see " Ignoring files." gitignore file, which is a set of ignore rules. For more information, see " About READMEs." You can create a README, which is a document describing your project.For more information, see " Importing an external Git repository using the command line," " Adding a file to a repository," and " Addressing merge conflicts." You can add or create new files using the user interface or choose to add new files using the command line later. If you're importing an existing repository to GitHub, don't choose any of these options, as you may introduce a merge conflict. If you're not using a template, there are a number of optional items you can pre-populate your repository with. For more information, see " About repositories." Type a name for your repository, and an optional description.Ĭhoose a repository visibility. Use the Owner dropdown menu to select the account you want to own the repository. Optionally, if you chose to use a template, to include the directory structure and files from all branches in the template, and not just the default branch, select Include all branches. For more information, see " Creating a repository from a template." You'll see template repositories that are owned by you and organizations you're a member of or that you've used before. Optionally, to create a repository with the directory structure and files of an existing repository, select the Choose a template dropdown menu and click a template repository. In the upper-right corner of any page, use the drop-down menu, and select New repository. Creating a new repository from the web UI For more information, see " gh repo create" in the GitHub CLI documentation. Tip: You can also create a repository using the GitHub CLI.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |