diff --git a/Readme.md b/Readme.md index aa890ed..33e79a3 100644 --- a/Readme.md +++ b/Readme.md @@ -45,6 +45,7 @@ $ brew install git-extras - `git graft` - `git alias` - `git ignore` + - `git info` - `git release` - `git contrib` - `git repl` @@ -327,6 +328,56 @@ build *.log ``` +# git-info + +Show information about the repo: + +```bash +$ git info + + ## Remote URLs: + + origin git@github.com:sampleAuthor/git-extras.git (fetch) + origin git@github.com:sampleAuthor/git-extras.git (push) + + ## Remote Branches: + + origin/HEAD -> origin/master + origin/myBranch + + ## Local Branches: + + myBranch + * master + + ## Most Recent Commit: + + commit e3952df2c172c6f3eb533d8d0b1a6c77250769a7 + Author: Sample Author + + Added git-info command. + + Type 'git log' for more commits, or 'git show ' for full commit details. + + ## Configuration (.git/config): + + color.diff=auto + color.status=auto + color.branch=auto + user.name=Sample Author + user.email=sampleAuthor@gmail.com + core.repositoryformatversion=0 + core.filemode=true + core.bare=false + core.logallrefupdates=true + core.ignorecase=true + remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* + remote.origin.url=git@github.com:mub/git-extras.git + branch.master.remote=origin + branch.master.merge=refs/heads/master + +``` + ## git-create-branch <name> Create local and remote branch `name`: diff --git a/man/git-extras.1 b/man/git-extras.1 index ab8d4a2..9405bb6 100644 --- a/man/git-extras.1 +++ b/man/git-extras.1 @@ -53,6 +53,9 @@ .IP "\(bu" 4 \fBgit\-undo\fR undo one or more of the latest commits . +.IP "\(bu" 4 +\fBgit\-info\fR show information about the repository +. .IP "" 0 . .SH "AUTHOR" diff --git a/man/git-extras.html b/man/git-extras.html index d985d5e..666bb5e 100644 --- a/man/git-extras.html +++ b/man/git-extras.html @@ -93,12 +93,13 @@
  • git-summary repository summary & contrib
  • git-touch touch and add file to the index
  • git-undo undo one or more of the latest commits
  • +
  • git-info show information about the repository
  • AUTHOR

    -

    Written by Tj Holowaychuk <tj@vision-media.ca>

    +

    Written by Tj Holowaychuk <tj@vision-media.ca>

    REPORTING BUGS

    diff --git a/man/git-extras.md b/man/git-extras.md index fd2aa8e..f0c60f6 100644 --- a/man/git-extras.md +++ b/man/git-extras.md @@ -21,6 +21,7 @@ git-extras(1) -- Awesome GIT utilities - `git-summary` repository summary & contrib - `git-touch` touch and add file to the index - `git-undo` undo one or more of the latest commits + - `git-info` show information about the repository ## AUTHOR