August 2019
Beginner to intermediate
798 pages
17h 2m
English
A branch offers a way to manage your workflow and separate changes from the main branch. Each repository has a default branch, which is usually called the master branch, and potentially multiple other branches.
You can create a new branch named new_branch on your local machine and go to it as follows:
$ git checkout -b new_branch Switched to a new branch 'new_branch'
If you want to connect that branch with GitHub, you should execute the following command:
$ git push --set-upstream origin new_branch Total 0 (delta 0), reused 0 (delta 0) remote: remote: Create a pull request for 'new_branch' on GitHub by visiting: remote: https://github.com/PacktPublishing/Mastering-Go-Second-Edition/pull/new/new_branch remote: To github.com:PacktPublishing/Mastering-Go-Second-Edition.git ...
Read now
Unlock full access