Hanieh
0
Q:

git branch

git branch -a
12
# Create New Branch And Switch To It
$ git checkout -b myBranchName
7
// checkout the branch to merge INTO
git checkout master
// merge local feature branch into master branch
git merge feature_branch_name
1
git branch <branchname> 
(or)
git checkout -b <branchname>
2
git checkout [branch name]
1
$ git remote add [name_of_your_remote] [name_of_your_new_branch]
2
$ git checkout -b [name_of_your_new_branch]
0
$ git branch [name of branch]
3
$ git push [name_of_your_new_remote] [url]
1
$ git checkout -b iss53
Switched to a new branch "iss53"
0
git checkout -b <new-branch-name> # create a new branch
git switch <branch-name> # Switch branch
0
$ git branch iss53
$ git checkout iss53
0

New to Communities?

Join the community