1 min readSep 7, 2019
Day2
Git Branching : you need to keep your master branch clean, by clean I mean without any changes, like that you can create at any time a branch from your master. Each time that you want to commit a bug or a feature, you need to create a branch for it, which will be a copy of your master branch.
Create the branch on your local machine and switch in this branch :
git checkout -b [name_of_your_new_branch]
Push the branch in master :
git push origin [name of branch]
Check status
git status
Add branch
git add .
Commit the message
git commit -m "pass message"