Comments on: Git Info — Almost Like “svn info” http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/ Thu, 05 Dec 2013 08:17:56 +0000 hourly 1 http://wordpress.org/?v=4.0 By: Sherwin http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-4601 Thu, 05 Dec 2013 08:12:53 +0000 http://justamemo.com/?p=2135#comment-4601 Thanks for that tip Antonio.

]]>
By: Antonio Hdez. Blas http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-4599 Wed, 04 Dec 2013 06:54:11 +0000 http://justamemo.com/?p=2135#comment-4599 Hi, you can drop git-info (as executable) at your ‘git-core’ directory and then you can just execute ‘git info’ inside your repository, no need for the alias in your shell. This also means that ‘git info’ would be available for all the users in your system.

In Slackware ‘git-core’ directory is /usr/libexec/git-core/.

- Cheers

]]>
By: Evandro http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-3898 Tue, 14 May 2013 10:07:26 +0000 http://justamemo.com/?p=2135#comment-3898 that’s because — (two dashes) get replaced by a – (long dash)

]]>
By: Sherwin http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2531 Tue, 23 Oct 2012 10:07:27 +0000 http://justamemo.com/?p=2135#comment-2531 I’ve done something similar but edited my .gitconfig directly w/ suggestions here: http://j.mp/OYAoQB (Stackoverflow post)

]]>
By: Michael http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2457 Fri, 21 Sep 2012 11:21:25 +0000 http://justamemo.com/?p=2135#comment-2457 cool script. this command is a bit bogus: git —no-pager log —max-count=1

it should be git log –max-count=1

]]>
By: Marcello De Sales http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2443 Mon, 13 Aug 2012 23:05:21 +0000 http://justamemo.com/?p=2135#comment-2443 Awesome… I have used the patch from Michael… thanks!

]]>
By: Mark http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2442 Tue, 17 Jul 2012 18:08:59 +0000 http://justamemo.com/?p=2135#comment-2442 You don’t like cat .git/config ?? Try this:


$ git-config -l ; # aka git-config --list

]]>
By: qa http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2356 Thu, 31 May 2012 03:37:31 +0000 http://justamemo.com/?p=2135#comment-2356 Hi what if i want all these in my application..i want to display the same[git last commit,git url etc] in my “About my project page” which i have done in rails

]]>
By: Sherwin http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2334 Sun, 15 Apr 2012 16:11:26 +0000 http://justamemo.com/?p=2135#comment-2334 Thanks Michael.

]]>
By: Michael Fairchild http://justamemo.com/2009/02/09/git-info-almost-like-svn-info/comment-page-1/#comment-2333 Sun, 15 Apr 2012 16:09:17 +0000 http://justamemo.com/?p=2135#comment-2333 the git log line did not work with my version, 1.7.6.1. I replaced it with

git –no-pager log –pretty=format:’%h was %an, %ar: %s’ –graph –n 10

which now gives nice compact output of the last 10 commits, such as

* 0f4acd3 was Michael, 2 months ago: Merge branch ‘master’ of http://github.com/mxcl/homebrew
|\
| * b769471 was Adam Vandenberg, 2 months ago: uwsgi: remove verbose warning
| * 0228551 was Peter Hollows, 4 months ago: polipo: launchd plist
| * 6d32041 was Jonas Bengtsson, 4 months ago: elinks: enable 256 colors

]]>