-
I am very new to using Git/GitHub, but if I have an issue in GitHub, how can I create a new branch dedicated to fixing that feature (using the CLI)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, welcome to GitHub! GitHub CLI provides only some functionality to look up information from GitHub, such as issues and pull request, but a lot of operations regarding version control (such as managing branches) are best made using Therefore, to create a new branch, you would use git switch --create my-feature Later, when you make some commits on that branch, you can either push the branch to a remote repository:
or you can choose to submit a pull request using GitHub CLI:
For more information, see https://docs.github.com/en/github/using-git |
Beta Was this translation helpful? Give feedback.
Hi, welcome to GitHub!
GitHub CLI provides only some functionality to look up information from GitHub, such as issues and pull request, but a lot of operations regarding version control (such as managing branches) are best made using
git
proper.Therefore, to create a new branch, you would use
git
:Later, when you make some commits on that branch, you can either push the branch to a remote repository:
or you can choose to submit a pull request using GitHub CLI:
For more information, see https://docs.github.com/en/github/using-git