Couple of handy Git command which are used quite often in daily work. There is lot more git commands you might want to use but from my experience this is all you need to know for 99 percent of the time. There are some tools which make life even easier for you. These tools has user interfaces where you do not need to execute your commands in the command line but I think it helps a lot if you know your way around terminal, specially if you are considering languages such as ruby on rails where work with commands is necessary.
// Create new branch git checkout -b “branchname” // Switch branches git checkout branchname // Push branch to github for first time git push github branchname // Change the branche git checkout -b branchname // Pull from the branch git pull origin branchname // Merging branches $git merge master