GitDemo
Repository contains Git Demo
How to create a repository using Bash Shell
$ git init
How to check git local repository status
$ git status
How to add changes in staging area
$ git add .
How to commit changes
$ git commit -m "<any relavant message>"
How to push changes to Github
$ git push
#Git Branching
- We can create branch from both local and remote repositories
List all available branches
$ git branch
Switch from one branch to another
$ git checkout <branch_name>
How to create a branch from bash shell
$ git branch <branch_name>
How to create a branch and switch to that from bash shell
$ git checkout -b <branch_name>
How to delete a branch from bash shell
$ git branch -d | -D <branch_name>