Posts

Showing posts with the label Git

Create git branch and delete branch.

Create the branch on your local machine and switch in this branch : $ git checkout -b [name_of_your_new_branch] Push the branch on github : $ git push origin [name_of_your_new_branch] switch to new branch or master $ git checkout [branch name] Delete a branch on your local filesystem :   $ git branch -d [name_of_your_new_branch]   delete branch from server $ git push origin :[name_of_your_new_branch] Enjoy!!!

How To Install Git with Apt in ubuntu.

To install git in Ubuntu you can use apt package management tools. Open terminal (ctrl+alt+t) and paste the bellow commands. sudo apt-get update sudo apt-get install git  Enjoy.........