Skip to content

Instantly share code, notes, and snippets.

@mikulcak
mikulcak / git-info.sh
Created March 24, 2017 19:22 — forked from jcaddel/git-info.sh
Somewhat similar to "svn info" but for a Git checkout
#!/bin/bash
#
# Displays information about the current working copy of a Git checkout
# and how it relates back to the remote branch it is tracking (if there is one)
#
# Jeff Caddel <jcaddel at yahoo dot com>
#
function check_git_dir {
### Keybase proof
I hereby claim:
* I am mikulcak on github.
* I am mikulcak (https://keybase.io/mikulcak) on keybase.
* I have a public key whose fingerprint is EB15 9061 6521 BD17 B352 C400 96C7 E3B5 8C94 26C1
To claim this, I am signing this object: