Git / GitHub

Git Revert File To Master

Git Revert File To Master $ git checkout origin/master -- [file_name]

Read the rest

Git List Remotes

Git List Remotes $ git remote -v The output looks like: origin git@github.com:remote/branch.git (fetch) origin git@git...

Read the rest

Git Checkout Remote Branch

With Git versions ≥ 1.6.6, with only one remote, you can do: $ git fetch $ git checkout <branch_name> If you have m...

Read the rest

Git Delete Local Branch

You can delete a Git Branch using the -d option $ git branch -d <branch_name> According to the Git documentation, -d ...

Read the rest