#git command

Working with branch in GIT

A strong point in GIT is so flexible when working with branch. So now I will share some GIT commands that usually use when working with branch.


You never know how strong you are until being strong is the ONLY option you have


In software development process, when your production was go live, you should create new branch for each issue. And after finishing a issue you should merge code carefully.

List all branch of repository (both local and remote)

Checkout code from a remote branch

Update code from all remote branch

Merge code between two branch

Merge specify commit to branch:

Create branch from previous comit

Checkout specify file from other branch:


How to GIT

As you know, with GIT,  you can setup a social network for developer. Everyone in everywhere can code your project, as long as they know how to use git.

How to push your change to remote

How to create new branch in local

How to switch branch

How to create new branch in remote

How to delete branch in local

How to delete branch in remote

How to merge 2 branches in remote


How to revert changes before add

How to remove file in remote

How to remove folder in remote


How to show git history

How to ‘undo’ git commit

How to ‘undo’ git add

How to ‘undo’ git push

How to add a tag

How to delete a tag in local

How to push a tag to remote


How to checkout to tag

How to delete a tag in remote

How to checkout a remote branch

How to edit a commit message

How to revert changes in local

How to list of file changes

How to pull a git branch from remote

How to ignore file locally

Move a tag