git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* getting started, happy with cmd line on windows [Scanned]
@ 2008-12-26 13:52 Conor Rafferty
  2008-12-26 16:39 ` René Scharfe
  2008-12-28 18:39 ` Daniel Barkalow
  0 siblings, 2 replies; 7+ messages in thread
From: Conor Rafferty @ 2008-12-26 13:52 UTC (permalink / raw)
  To: git

We want to use git to
a) archive old versions of our project that have till now had no SCM
applied
b) moving forward, provide robust SCM on new versions of project

Just to get familiar, I created a folder, ran

$ git init

then created a few files: ABC.txt, AC.txt, BC.txt, C.txt This mimics our
real life sitch for purpose (a), files are in version A, but not in
version B, which introduces new files, whick might not be in version C

$ git add *c*.txt
$ git commit -m "version A"

so now ABC.txt and AC.txt are in the repo, at a commit with comment
"version A"

$ git show

confirms this

$ git status

confirms that BC.txt and C.txt have not been tracked - great, as
designed

I then deleted all files from the working directory, so I can pull out
ONLY the ones in version A.
I tried both fetch and checkout - but nothing was copied into working
dir How do I do this ?

NB along the way I also tagged this first commit as "tag_versionA"
also tried

$ git checkout tag_versionA
which changed HEAD back to version A, but didn't create the files

Seems like I'm missing some fundamental concepts here - from other
SCM's, I understood fetch or checkout would copy files into your working
dir that were replicas of the versions stored in repository








-- 

 
<http://www.altmore.co.uk/xNON_SITE/SignatureFiles/AltmoreIT_signature_l
ogo.JPG> 

Conor Rafferty BSc (Hons.)
REGIONAL MANAGER
Altmore IT Recruitment
Townsend Enterprise Park
28 Townsend Street
Belfast BT13 2ES 

T: +44 (0)28 9032 8400
E: conor.rafferty@altmore.co.uk
W: www.altmore.co.uk <http://www.altmore.co.uk/>  

LinkedIn: http://www.linkedin.com/in/conorrafferty

________________________________

This electronic message contains information from Altmore IT Recruitment
which may be privileged or confidential. The information is intended to
be for the use of the individual(s) or entity named above. If you are
not the intended recipient be aware that any disclosure, copying
distribution or use of the contents of this information is prohibited.
If you have received this electronic message in error, please notify us
by telephone or email (to the numbers or address above) immediately.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-30  1:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-26 13:52 getting started, happy with cmd line on windows [Scanned] Conor Rafferty
2008-12-26 16:39 ` René Scharfe
2008-12-26 23:13   ` Zorba
2008-12-26 23:50     ` Junio C Hamano
2008-12-27  2:18       ` Zorba
2008-12-28 18:39 ` Daniel Barkalow
2008-12-30  1:22   ` Zorba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).