LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 05-06-2009, 05:10 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,429
Blog Entries: 6

Rep: Reputation: 51
Doubt with GIT?


I have a repository named "Celerado" which includes various projects setup through GIT.Now as I have just migrated from SVN to GIT, How can I create authentication on Git?How to add users to Git?
 
Old 05-07-2009, 03:10 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Git doesn't have a separate authentication system, it relies on file permissions. To give people write access to a repository on a server, give them SSH access and write access to the files. You can use git shell with this. The git daemon service is for providing read-only access.
 
Old 05-07-2009, 10:58 PM   #3
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,429
Blog Entries: 6

Original Poster
Rep: Reputation: 51
Few Doubts more..Say, I have 10 users who wants to access GIT Repository and work with the same.
I just migrated my SVN to GIT and while migrating the tutorial taught me creating a file called svn-to-git file as:

Code:
admino = Admino <admino@gmail.com>
alsred = alsred < alsred@gmail.com>
As out of those 5 members will be working on a project called ITES, I need mail to be sent to those only 5 members and not to all others associated.
Someone suggested me Hook script but no idea how it gonna happen. Can you help me with this?
 
Old 05-08-2009, 04:11 PM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
Every time that Git carries out an action, it looks in the .git/hooks/ directory for a file with a particular name, and runs it. The file could actually be a symlink that points to a file somewhere else on the system.

The man page for githooks explains:

http://www.kernel.org/pub/software/s.../githooks.html

You can use any scripting language, such as Perl or Ruby, not just shell, and I don't think that the script has to follow any special format, so you can write whatever code is best or easiest to get the list of addresses and send emails. Some examples are quite long, but there's nothing wrong with writing something very simple.

There is a large example post-commit hook script to send emails (written in shell) provided with the Git documentation, in the file /usr/share/doc/git-core/contrib/hooks/post-receive-email - it gets a list of addresses stored in the repository settings file, using the git config utility.
 
  


Reply

Tags
git


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on GIT? your_shadow03 Linux - Server 1 03-20-2009 07:34 AM
why is git scm named 'git'? hottdogg Linux - General 5 02-03-2009 07:25 AM
Using GIT vkmgeek Linux - General 1 12-25-2008 04:48 PM
inconsistency issue of git-clone ***/git/mesa/drm with the existing kernel source centguy Linux - Desktop 2 10-08-2008 10:36 PM
git vkmgeek Linux - Newbie 2 06-19-2008 09:11 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration