GIT checkout very urgent ..!!

61 views
Skip to first unread message

srina...@gmail.com

unread,
Apr 14, 2014, 12:49:45 PM4/14/14
to gitflo...@googlegroups.com
Hi Folks,

I'm new to GIT.

I'm trying to checkout a specific file from GIT using Jenkins, I didn't any way how to get a specific file form GIT. 

Could any one tel how to do this by using jenkins or GIT command.

we are accesing git through STASH my repository is like  ssh://g...@stash.xyz.com:7999/repo/test.git 

there are 20 folders under test repo, my requirement is checkout a specific file/folder from test repo.

This is my requirement:

I have almost 20+ products, So, I would like to keep all my configuration and property files which are required to build my project.

Eg: I will create a repository with the name CM under this I will create different folders.
      All configuration files of product A is under A folder
      All configuration files of product B is under B folder

Developer will select product name based on that my Jenkins GIT job will get those property files only not all under CM repo.

Thanks in Advance.

Hartmut Goebel

unread,
Apr 14, 2014, 12:58:44 PM4/14/14
to gitflo...@googlegroups.com
Am 14.04.2014 18:49, schrieb srina...@gmail.com:
I'm new to GIT.

I'm trying to checkout a specific file from GIT using Jenkins, I didn't any way how to get a specific file form GIT.

Well, to be frank, I suggest getting yourself a decent book about git concepts or read some online-articles about this.

Git is not mean to checkout single files (like subversion can so IIRC).


Eg: I will create a repository with the name CM under this I will create different folders.
      All configuration files of product A is under A folder
      All configuration files of product B is under B folder

Instead of using folders, I'd use a git repository for each project by there own. Or you can use different branches within the same repository.


--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/trustcenter.de-nimmt-es-mit-der-sicherheit-nicht-mehr-so-genau
Kolumne: http://www.cissp-gefluester.de/2010-07-passwoerter-lieben-lernen

Goebel Consult ist Mitglied bei http://www.7-it.de/

Reply all
Reply to author
Forward
0 new messages