Category: Versioning systems

Git commands

Clone a remote repository To clone master branch from remote repository on local machine: # git clone -b master <git url> Checkout branches To checkout branches other than master: # git checkout –track origin/<branch1> # git checkout –track origin/<branch2> Add untracked files to git # git add Add all files to staging area # git add […]