git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Few Questions

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 20, 2009, 15:44 UTC
Message-ID
<m3r62yx9qi.fsf@localhost.localdomain>
In-Reply-To
<726600.29783.qm@web35708.mail.mud.yahoo.com>
"Arya, Manish Kumar" <m.arya@yahoo.com> writes:
Show 9 quoted lines
> Hi,
> 
> I am new to Git. Earlier I have configured svn with LDAP auth and
> svnwebclient.
> 
> I want to have following with Git
> 
> - LDAP and ssh authentication.
> 

Instead of inventing (and failing) its own protocol and its own authentication git uses established solutions for authentication: SSH for "smart" server, and WebDAV for push via (currently only "dumb") HTTPS protocol.

There exist solutions that help with setting up SSH for git: git-shell, ssh_acl, and I think most commonly used Gitosis (see seminal reference about Gitosis on http://git.or.cz/gitwiki/BlogPosts).

> - checkin and checkout using web interface and ssh
> 

Git is distributed version control system: checkin (named 'commit' in git) and checkout are _local_ operations. Fetch (getting new changes from remote repository) and clone (creating new local repository following or forking specified remote repository) can be done via local filesystem, via git:// protocol, via "dumb" HTTP, and via SSH. Push (sending changes to remote repository) needs autheticated channel: most common used is SSH, but you can also use WebDAV with HTTPS.

There are web interfaces for Git, something like SVN::Web or ViewVC, like gitweb (in Perl, developed in git.git repository) and cgit (in C). See also "Web interfaces" section on InterfacesFrontendsAndTools page on git wiki.

> - when ever someone checkin something then a email should be send to
>   a email address (a mailing list)
If by 'checkin' you mean publishing changes to a server (i.e. push in
git terminology), see for example contrib/hooks/post-receive-email
hook.
 
> please let me know how to do this with Git

Please learn that Git is _different_ from Subversion, and not try to follow your SVN workflow and expectations blindly.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Matthieu MoyNext: Shawn O. Pearce
Message 3 of 5 in “Few Questions”
  1. Arya, Manish KumarJan 20, 2009
  2. Matthieu MoyJan 20, 2009
  3. Jakub NarebskiJan 20, 2009
  4. Shawn O. PearceJan 20, 2009
  5. R. Tyler BallanceJan 21, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.