Professional Documents
Culture Documents
you have to add your github email address and username you'll commit
your files to.
//BRANCHES CHAPTER
we need them to do works seperately and then merge them to one work without having
to
work on the same branch which helps reducing massive errors that can ruin all the
project
//
1) git branch feature-1 (added a branche named ''feature-1'' under the master
branch)
2) git branch -a (to see all the branches you have) the one colored with green is
the one you're
working into)
3) git checkout feature-1 (to switch to the branch feature-1)
//now you can add and commit files in that branch
4) // if things went wrong and you want to delete that branch:
4.1) go back to the master branch: git checkout master
4.2) git branch -d feature-1 (or -D if your branch is not merged yet)