In this post we will learn basic commands to get started with git and github
$sudo apt install git-all
$git init
$ git config --global user.name "Your Name "
$ git config --global user.email email@example.com
$git clone /path/to/repository
$git add <filename>
$git add *
$git commit -m "Commit message"
$git push origin master
$git remote add origin <server>
Create a branch
$git checkout -b feature_x
Switch back to master branch
$git checkout master
Delete the branch again
$git branch -d feature_x
Push the branch on the server
$git push origin <branch>
$ git pull
Merge another branch into your active branch (e.g. master), use
$git merge <branch>
Reference : http://rogerdudler.github.io/git-guide/