Common useful git commands

To go to last state after a conflicted merge:

git reset –merge ORIG_HEAD

To know the current active branch
git branch
this command show all branches available on local and highlights the active one.

To know all available branch
git branch -a

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>