Re: [git-users] “Ghost” commit

2012-09-27 Thread Adam Prescott
well it might be currently implemented in a way that leaves traces, but it seems amend is documented to replace the previous commit with the new one. Future implementations and garbage collection may vary. What's the purpose of trying to see if traces of this previous commit exist anyway? I

Re: [git-users] git branching

2012-08-28 Thread Adam Prescott
On Aug 28, 2012 8:51 PM, Ryan Hodson hodson.r...@gmail.com wrote: Or, you can use the -b shortcut to save a step: git checkout develop git checkout -b some-feature If you're going to use a shortcut, use a shortcut! git checkout -b some-feature develop -- You received this message because

Re: [git-users] Full Backup - Best Practice

2012-08-17 Thread Adam Prescott
On Fri, Aug 17, 2012 at 11:43 AM, Konstantin Khomoutov flatw...@users.sourceforge.net wrote: In my shop, we back up each Git repo on the main server to its mirror bare repository on another box using a call to `git fetch`: git fetch --quiet --prune repo '+refs/*:refs/*' which essentially

Re: [git-users] Full Backup - Best Practice

2012-08-17 Thread Adam Prescott
On Fri, Aug 17, 2012 at 1:49 PM, Konstantin Khomoutov flatw...@users.sourceforge.net wrote: Quite probably. The problem with `git clone` is that it's supposed to create a repository, but we keep the mirror repositories around (I mean, they are not tarred and gzipped, and just sit there

Re: [git-users] newbie: Merging from remote projects into my modified branch

2012-08-17 Thread Adam Prescott
GitHub covers this in their Fork A Repo help page: https://help.github.com/articles/fork-a-repo See the section, Pull in upstream changes. Adam -- 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

Re: [git-users] Rebasing tags

2012-08-15 Thread Adam Prescott
On Wed, Aug 15, 2012 at 11:57 PM, Andrew Gavin axga...@googlemail.comwrote: I would like to reliably carry over the tags from the fetch branches to the respective branches that I'm going to dcommit. I thought I could do a rev-list checking the tree-hash of the commit and making sure that they

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

2011-11-02 Thread Adam Prescott
In git, there are local and remote branches. A local branch is created by doing something like `git branch` or `git checkout -b`. You can checkout local branches. By which I mean: you can check them out and have the branch update simply by doing a commit. Suppose you know that a file on

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

2011-11-02 Thread Adam Prescott
On Wed, Nov 2, 2011 at 07:40, tombert tomb...@live.at wrote: git fetch updates your local database, but the local database is not the same as in svn or cvs. In git you have a local and a remote database and neither the local nor remote database does/needs not contain any files you work on

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

Re: [git-users] Re: Git support archives devices

2011-09-02 Thread Adam Prescott
On Thu, Sep 1, 2011 at 5:53 PM, Konstantin Khomoutov flatw...@users.sourceforge.net wrote: I honestly do not want to appear as wishing to be smarter than those smart guys who wrote Git, but I'm yet to see a developer around me who really thinks of Git (or any other [D]VCS for that matter) in

Re: [git-users] Re: git tag -l - where are the associated

2011-08-23 Thread Adam Prescott
On Tue, Aug 23, 2011 at 6:43 PM, Phlip phlip2...@gmail.com wrote: Now I'm still trying to go from a hashtag to a tag. I'll see if I can follow up when I find it - it should be easy, right? git show-ref --tags | grep de049647a1ea285ce7791dc4ebf01ddfc564ddad If the tag is the only ref for

Re: [git-users] Getting back the latest commit

2011-05-10 Thread Adam Prescott
On Tue, May 10, 2011 at 11:30 PM, Konstantin Khomoutov flatw...@users.sourceforge.net wrote: On Tue, May 10, 2011 at 02:13:09PM -0700, koshy Koshy wrote: If the commit b was the tip of the branch and you did not do any checkouts after checking out a, then $ git checkout ORIG_HEAD should

Re: [git-users] Re: Git on Android

2011-04-01 Thread Adam Prescott
Great idea for a project! On Fri, Apr 1, 2011 at 4:32 PM, Thomas Ferris Nicolaisen tfn...@gmail.comwrote: That being said, I would probably use a web application like Gerrithttp://code.google.com/p/gerrit/for doing code-review, so not really a need for any Anroid-Git there. [...] GitHub

Re: [git-users] get rid of old commits

2010-09-29 Thread Adam Prescott
My understanding is that git will handle running git gc for you when you have a fair amount of stuff it can clear up (I've seen it do this automatically, personally, but I could be wrong). So even if the answer is no, it might not be the answer to the question, has 'git gc' ever been run? -- You