Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Ask a Question
What does the command git checkout -b branchname do?
Home
Git
What does the command git checkout -b branchname do?
asked
Feb 13, 2022
in
Git
by
rajeshsharma
Q:
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
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
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
+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 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
0
votes
Q: What does ‘git pull’ command in GIT do internally?
asked
Apr 18, 2020
by
SakshiSharma
0
votes
Q: What is the Git command to blow away all the changes in a file in the working area, since the previous commit?
asked
Oct 26, 2020
in
Git
by
AdilsonLima
#git
0
votes
Q: What is the command to write a commit message in Git?
asked
Aug 16, 2020
in
Git
by
RShastri
#git
0
votes
Q: Which Git command is use to view all the changes since the last commit?
asked
Jun 8, 2020
in
Git
by
DavidAnderson
#git
0
votes
Q: Which Git command to skip staging and commit the changes directly?
asked
Jun 8, 2020
in
Git
by
DavidAnderson
#git
0
votes
Q: What is ‘git reset’ is used for? What is the default mode of this command?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-reset
#reset-git
0
votes
Q: What is git diff command? How is it different from git status?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-diff-command
#diff-command
0
votes
Q: When is the git config command used?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-config-command
#git-config
#git-command-config
0
votes
Q: What is the use of git clone command?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-clone-command
#git-clone
#git-command-clone
0
votes
Q: Which command is used for writing a Commit Message in Git?
asked
May 21, 2020
in
Git
by
SakshiSharma
#git-commit
#git-command
#commit-command
...