[git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread Rambo
Git documentation is useless, I don't know how to do the same as svn 
update file with git. No one mentions it and I'm desperate because I 
fucked up something in production and don't know how to fix it.
Thanks.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/O3ELFtL_KaYJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread radovan bast

$ git checkout file

there is very good git documentation out there.

radovan


On Tue, 01 Nov 2011 19:44:18 +0100, Rambo demia...@gmail.com wrote:


Git documentation is useless, I don't know how to do the same as svn
update file with git. No one mentions it and I'm desperate because I
fucked up something in production and don't know how to fix it.
Thanks.


--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread David Aguilar
On Nov 1, 2011, at 12:04 PM, Phlip phlip2...@gmail.com wrote:

 Git documentation is useless

 +1.

 Someone needs to assume that some people here don't want to work
 full-time with git, and learn all its tiny details just to get
 anything done. I'm aware of the various tutorials and cheat-sheets out
 there, but there's just nothing that sketches every path between two
 points. And gods help you if you want to revert some kind of complex
 multi-branch merge. I always just git clone the revision I need into a
 scratch folder, then copy all the source over. Sheesh...

what are you doing to improve the situation?

what documentation, specifically? git-scm.com has good links and
progit is quite comprehensive. are there points that can be improved?
helpful criticism helps to improve the situation instead of
complaining into the abyss.



please help the community help you.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread radovan bast
i agree with David - i find it a bit unfair to say that Git documentation  
is useless.

as i said there is excellent documentation out there written by people
in their free time.
of course i understand that not everybody can invest time in Git details
but i also think that you don't need many commands to survive
with everyday Git situations - i bet you can live a fulfilled Git life
with 10 commands.
it is possible that there may not be many ultracompact Git tutorials.
but only we can change that: the community.
  r.



On Tue, 01 Nov 2011 20:13:13 +0100, David Aguilar dav...@gmail.com wrote:


On Nov 1, 2011, at 12:04 PM, Phlip phlip2...@gmail.com wrote:


Git documentation is useless


+1.

Someone needs to assume that some people here don't want to work
full-time with git, and learn all its tiny details just to get
anything done. I'm aware of the various tutorials and cheat-sheets out
there, but there's just nothing that sketches every path between two
points. And gods help you if you want to revert some kind of complex
multi-branch merge. I always just git clone the revision I need into a
scratch folder, then copy all the source over. Sheesh...


what are you doing to improve the situation?

what documentation, specifically? git-scm.com has good links and
progit is quite comprehensive. are there points that can be improved?
helpful criticism helps to improve the situation instead of
complaining into the abyss.





please help the community help you.


--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread radovan bast

let's say you want it from origin/master:

$ git checkout origin/master file

and you are welcome,
  radovan


On Tue, 01 Nov 2011 20:24:31 +0100, Rambo demia...@gmail.com wrote:


git checkout file reverts the file... I need to UPDATE the file from a
remote repository. i don't get why everyone I ask tells me the same, it
does not work for me.
Documentation says git checkout works for branches, it does NOTHING about
pulling file updates...


--
You received this message because you are subscribed to the Google Groups Git for 
human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread Rambo
I did that and nothing happens, no log, nothing... what's that supposed to 
mean? the file did not update either...

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/vaZleTej0y0J.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread Adam Prescott
If you're asking how do I pull only one specific file from the remote
server, I think the short answer is: you can't, Git is not SVN. However,
if you're against doing a full pull, you could do `git fetch origin; git
checkout origin/master -- file`. This will do a full update from the
origin server, but leave your master branch untouched, since there's no
merge.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



Re: [git-users] Could you please tell me how to fetch a single file?

2011-11-01 Thread Rambo
That worked, but I don't know why, as any git command I don't understand 
what it does.
When I do git fetch, where does everything do? It stays flying somewhere 
until I merge with my branch?

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/uSMtO-CFHPEJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.