Git Cheat Sheet

By Joel Van Patten
Written on October 30, 2019

What are my remote urls?

$ git remote -v

How to change the URI (URL) for a remote Git repository:

$ git remote set-url origin <new.git.url>

What commit am I on?

use git show with the -s option to suppress patch output:

$ git show --oneline -s