|
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)? |
Replies: 3 comments 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-featureLater, 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 |
|
Branches are git references. You can create references using the GitHub API and the |
|
Hey, welcome to GitHub CLI! Two one-liners depending on what you are after:
If you are not sure whether the issue is in your repo or upstream, run gh issue view first -- it will tell you. |
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
gitproper.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