GIT Cheatsheet

Clone a repo

git clone <your repo URL>

Create a branch and switch to it

git checkout -b <branchname>

Delete a branch

git branch -d <branchname>


List the local branches

git branch

List only remote branches

git branch -r


List all the remote and local branches

git branch -a

Renaming a branch

git branch -m old-name new-name

Comments

Popular posts from this blog

Cross Browser testing for React Apps

Fixing the appium installation with NPM

Challenges in testing ChatBots