Difference between revisions of "Git"
(Created page with "== Install Git == On the Unix box, install Git. To do so, follow this link: [http://git-scm.com/book/en/v2/Getting-Started-Installing-Git] == Git User == A Git user must be p...") |
(→Set Git Authentication for the Jenkins User) |
||
Line 12: | Line 12: | ||
The following is an example of a <code>~/.netrc</code> file on Unix: |
The following is an example of a <code>~/.netrc</code> file on Unix: |
||
<pre> |
<pre> |
||
− | machine github.com |
+ | machine github.com |
− | login gitUserName |
+ | login gitUserName |
− | password gitPassword |
+ | password gitPassword |
+ | </pre> |
||
+ | |||
+ | And on the command line, make sure the following is entered: |
||
+ | <pre> |
||
+ | git config --global user.email "you@example.com" |
||
+ | git config --global user.name "Your Name" |
||
</pre> |
</pre> |
||
Revision as of 20:32, 21 April 2015
Install Git
On the Unix box, install Git. To do so, follow this link: [1]
Git User
A Git user must be provided by the development organization. This Git user must have clone, pull, and push access to the projects' repositories to be on-boarded. This Git user is used for all projects.
Set Git Authentication for the Jenkins User
Scripts clone and push to and from the repository; The Git user login and password must be set as per this page: [2]
The following is an example of a ~/.netrc
file on Unix:
machine github.com login gitUserName password gitPassword
And on the command line, make sure the following is entered:
git config --global user.email "you@example.com" git config --global user.name "Your Name"
Test
Make sure you can clone some repository using git clone, without having to enter at the prompt the login and password of the Git user.