Your branch is ahead of by x commits – what’s changed?

So you do a git status and you see:

How do you check to see what you’ve changed (i.e. local and remote)?

TLDR: use tig (option 4).

Options:

1. git log

git show <sha1>

 

2. This isn’t much use: git diff. E.g.

and then you’ll end up with gibberish like:

which you can tortuously pick apart line by line. E.g. I especially like the easy-to-read @@ -0,0 +1,2 @@ – immediately obvious!

3. You can use Visual Studio Code (if installed) with code .

But when I tried, this didn’t seem to pick up what my commits were.

 

4. tig is awesome

http://gitready.com/advanced/2009/07/31/tig-the-ncurses-front-end-to-git.html

See the manual (https://jonas.github.io/tig/doc/manual.html) e.g. for key shortcuts.

 

 

 

Leave a Reply

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