[GIT command] Branch

Here are some git commands concerning the manipulation of branchs.

# List all the remote branchs

# Checkout a remote branch

$ git checkout -b my_local_branch origin/my_remote_branch

# Delete a local branch

$ git checkout -d my_local_branch

 

Advertisements

[GIT command] Compare two branchs

# git branch
* master
another_branch

Git diff command allows to list the different files between the two branchs
# git diff –name-status master..another_branch