- For creating new branch
git checkout -b [new-branch-name]
Example: we want to create new branch named: new-branch-1
git checkout -b new-branch-1
- For swicthing existing branch
default: | |
cc ccsmtp.c -o ccsmtpd -lpthread |
git checkout -b [new-branch-name]
Example: we want to create new branch named: new-branch-1
git checkout -b new-branch-1