Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What does the command git checkout -b branchname do?
Home
Git
What does the command git checkout -b branchname do?
0
votes
asked
Feb 13, 2022
in
Git
by
rajeshsharma
What does the command git checkout -b branchname do?
a) Creates a new branch and switches to this new branch
b) Switches from the current branch to the new branch
c) Deletes the new branch
d) Commits the new branch
git-checkout
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Feb 13, 2022
by
rajeshsharma
a) "
git checkout -b branchname"
Creates a new branch and switches to this new branch
Related questions
+1
vote
Q: What does the command git checkout branchname do?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: What is the difference between git checkout [branch name] and git checkout -b [branch name]?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-branch
#branch-git
0
votes
Q: What is the meaning of git checkout in git?
asked
Sep 5, 2020
in
Git
by
SakshiSharma
#git-checkout
#chckout-git
+1
vote
Q: What is the git command to move branch pointer to different commit without checkout ?
asked
Jul 26, 2019
in
Git Slack Integration
by
sheetalkhandelwal
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: What does the command git add . do?
asked
Jun 8, 2020
in
Git
by
DavidAnderson
#git
#gitadd
+1
vote
Q: What does the GIT command 'git remote prune origin' do?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
+1
vote
Q: What does the command git add. do?
asked
Jul 25, 2019
in
Git
by
SakshiSharma
#developer-git
#git
#git-commands
#git-checkout
#git-reset
#git-branch
#what-is-git
#git-pull
git-diff
0
votes
Q: What does the command Git reset –- soft HEAD^ perform?
asked
Feb 13, 2022
in
Git
by
rajeshsharma
git-reset
0
votes
Q: Describe the work functioning of SVN checkout command?
asked
Dec 20, 2020
in
SVN
by
SakshiSharma
#svn-checkout
#svn-command
0
votes
Q: Explain what checkout command is and how to use the checkout command in SVN?
asked
Dec 17, 2020
in
SVN
by
SakshiSharma
#svn-checkout-command
#svn-command
#svn-checkout
...