![]() Open the command line ('Terminal' on the Mac, 'Git Bash' on Windows) and change into your projects base directory. (If you already have this, skip to the next section below titled 'How to Push to GitHub'.) Using Git on the Command Line. For more information, see " Using GitHub CLI extensions" and " Creating GitHub CLI extensions."įor more information about all of the commands that you can run with GitHub CLI, see " GitHub CLI reference. First, you need to have a local repository for your actual project code. For more information, see gh alias.Ĭreate or add custom commands with GitHub CLI extensions. ![]() For example, if you run gh alias set prd "pr create -draft", you will then be able to run gh prd to quickly open a draft pull request. For more information, see gh config set.ĭefine aliases for commands that you commonly run. For example, enter gh config set editor "code -w" to set your preferred text editor to Visual Studio Code. Tell GitHub CLI which text editor to use for commands that open a text editor. Review a pull request with gh pr checkout, gh pr diff and gh pr review. For example, find an issue to work on with gh issue status or gh issue list -assignee Create a pull request with gh pr create.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |