git make branch new master code example
Example 1: git create new branch
// Example for creating a new branch named myNewBranch
git checkout -b myNewBranch
// First Push
git push --set-upstream origin myNewBranch
Example 2: git create new branch from current
git checkout -b topic/newbranch
Example 3: create new branch git from master
git checkout -b new-branch-name
Example 4: copy branch to master
git checkout master.
git checkout branch_from_which_you_have_to_copy_the_files_to_master . (with period)
git add --all.
git push -u origin master.
git commit -m "copy from branch to master"