Skip to main content

Posts

Showing posts from December, 2013

Git Branching

If you use Git version control system then following commands may come handy for creating new branch for selenium tests - Create new branch and commit tests/features to branch –   git checkout –b <branchname> Work on branch and commit git commit –m “developed awesome feature”  Merge branch to your local master git checkout master pull if remote master is updated and then merge the branch git pull If you want to avoid creation of merge commit then rebase else merge and push to remote master git pull --rebase   git merge <branchname>   git push Once done with branch then delete it git branch –d <branchname> If you want local branch to be pushed to git so that more than one committer could work on it git push -u origin <branchname> If origin does not have a <branchname>, then it is created on the fly. The -u tells git that you want to be able