0 votes
30 views

What is the difference between git checkout [branch name] and git checkout -b [branch name]?

in Technology by (191k points)

1 Answer

0 votes

The command git checkout [branch name] will switch from one branch to another.

The command git checkout -b [branch name] will create a new branch and also switch to it.

by (191k points)

Related questions

0 votes
1 answer 21 views
0 votes
1 answer 32 views
32 views asked Jan 8 in Technology by JackTerrance (191k points)
0 votes
1 answer 22 views
0 votes
1 answer 38 views
0 votes
1 answer 27 views
0 votes
1 answer 47 views
0 votes
0 answers 25 views
0 votes
1 answer 14 views
14 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 27 views
27 views asked Jan 8 in Technology by JackTerrance (191k points)
0 votes
1 answer 20 views
20 views asked Jan 7 in Technology by JackTerrance (191k points)
0 votes
1 answer 23 views
23 views asked Jan 7 in Technology by JackTerrance (191k points)
0 votes
1 answer 84 views
84 views asked Dec 10, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 17 views
17 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 20 views
20 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 18 views
0 votes
1 answer 19 views
0 votes
1 answer 16 views
0 votes
1 answer 18 views
18 views asked Nov 2, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 34 views
0 votes
1 answer 23 views
0 votes
1 answer 22 views
0 votes
1 answer 16 views
16 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 11 views
11 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 15 views
15 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
0 votes
1 answer 28 views
28 views asked Nov 4, 2020 in Technology by JackTerrance (191k points)
...