sachinprabhu007 / GitDemo

Repository contains Git Demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. 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>

About

Repository contains Git Demo


Languages

Language:Java 100.0%