Re: [git-users] Rebasing tags

2012-08-17 Thread Andrew Gavin
On Thursday, 16 August 2012 00:20:00 UTC+1, Adam Prescott wrote: On Wed, Aug 15, 2012 at 11:57 PM, Andrew Gavin axg...@googlemail.comjavascript: wrote: 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

[git-users] Re: Rebasing tags

2012-08-17 Thread Andrew Gavin
On Thursday, 16 August 2012 09:28:52 UTC+1, Thomas Ferris Nicolaisen wrote: On Thursday, August 16, 2012 12:57:47 AM UTC+2, Andrew Gavin wrote: I'm new to the group but have been using git for a while. I have a question about rebasing and tags. We have a bridge which we use to bridge a

[git-users] execute hooks for submodules from global templates

2012-08-17 Thread Fred
Hello, I've defined a pre-commit hook in ~/.git_templates directory. It works great for all my git projects, except for submodules. If i do a commit in submodule directory pre-commit hook ist not executed. Is there a workaround? Fred -- You received this message because you are subscribed to

[git-users] Full Backup - Best Practice

2012-08-17 Thread Michal Idziorek
Hello, What would be the most elegant way to fully backup a bare git repository. Would the following approach work fine? tar -cf repository.tar repository/ I wonder what happens if the repository is accessed during the backup? Warm regards and thanks in advance, michal -- You received

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

2012-08-17 Thread Thomas Ferris Nicolaisen
On Friday, August 17, 2012 10:52:54 AM UTC+2, Michal Idziorek wrote: Hello, What would be the most elegant way to fully backup a bare git repository. Would the following approach work fine? tar -cf repository.tar repository/ I wonder what happens if the repository is accessed during

[git-users] Re: execute hooks for submodules from global templates

2012-08-17 Thread Thomas Ferris Nicolaisen
On Friday, August 17, 2012 10:50:35 AM UTC+2, Fred wrote: Hello, I've defined a pre-commit hook in ~/.git_templates directory. It works great for all my git projects, except for submodules. If i do a commit in submodule directory pre-commit hook ist not executed. Is there a workaround?

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

2012-08-17 Thread Konstantin Khomoutov
On Fri, 17 Aug 2012 01:52:54 -0700 (PDT) Michal Idziorek idzio...@gmail.com wrote: What would be the most elegant way to fully backup a bare git repository. Would the following approach work fine? tar -cf repository.tar repository/ I wonder what happens if the repository is accessed

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

2012-08-17 Thread Pankaj Gupta
i would prefer git bundle create backup file --all --remotes To unbundle use : git clone backup file to clone from it. i also liked git bundle verify to verify the bundle. -Pankaj On Fri, Aug 17, 2012 at 2:32 PM, Thomas Ferris Nicolaisen tfn...@gmail.comwrote: On Friday, August 17, 2012

[git-users] Re: execute hooks for submodules from global templates

2012-08-17 Thread Fred
Thanks! Re-clone helped On Friday, August 17, 2012 12:13:59 PM UTC+2, Thomas Ferris Nicolaisen wrote: On Friday, August 17, 2012 10:50:35 AM UTC+2, Fred wrote: Hello, I've defined a pre-commit hook in ~/.git_templates directory. It works great for all my git projects, except for

Re: [git-users] execute hooks for submodules from global templates

2012-08-17 Thread Pankaj Gupta
Not sure if i understood the problem... did you use this command to clone: git clone --template=templatedir --recursive-submodules sourcerepo or something else? please share the exact command.. -Pankaj On Fri, Aug 17, 2012 at 2:20 PM, Fred fredgarlo...@googlemail.com wrote: Hello, I've

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 Konstantin Khomoutov
On Fri, 17 Aug 2012 13:20:17 +0100 Adam Prescott a...@aprescott.com 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 means bring

Re: [git-users] execute hooks for submodules from global templates

2012-08-17 Thread Fred
just git clone --recursive sourcerepo in my config ~/.gitconfig I've added [init] templatedir = ~/.git_template On Friday, August 17, 2012 2:10:35 PM UTC+2, Pankaj Gupta wrote: Not sure if i understood the problem... did you use this command to clone: git clone

[git-users] Warning: you are leaving 30 commits behind, not connected to any of your branches:

2012-08-17 Thread Fred
Hello, I've cloned a fresh repo with submodules and then cd library/module git checkout master it gives me a warning and I don't understand why and how to avoid it? Warning: you are leaving 30 commits behind, not connected to any of your branches: 2553655 Merge branch 'master' into prod

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] Warning: you are leaving 30 commits behind, not connected to any of your branches:

2012-08-17 Thread Konstantin Khomoutov
On Fri, 17 Aug 2012 06:35:24 -0700 (PDT) Fred fredgarlo...@googlemail.com wrote: I've cloned a fresh repo with submodules and then cd library/module git checkout master it gives me a warning and I don't understand why and how to avoid it? Warning: you are leaving 30 commits behind, not

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

2012-08-17 Thread Konstantin Khomoutov
On Fri, 17 Aug 2012 14:47:07 +0100 Adam Prescott a...@aprescott.com 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 waiting for the

Re: [git-users] Warning: you are leaving 30 commits behind, not connected to any of your branches:

2012-08-17 Thread Fred
I think I have good understanding how submodules work. But still don't get why those commits are not connected to any branches. Why I am getting this warning? What I'm doing wrong? IMHO it should just do checkout master without warning. On Friday, August 17, 2012 4:52:43 PM UTC+2, Konstantin

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

2012-08-17 Thread tigerfoot
Hello, I cloned a project someone else wrote (say github://author/foo) into my own repo and made several changes and have pushed them back to my own repo (github://me/foo). I left the project alone for a while but now see the original author has made a lot of changes in his code,

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] newbie: Merging from remote projects into my modified branch

2012-08-17 Thread tigerfoot
That did the trick, thanks! Bookmarked for future reference. On Friday, August 17, 2012 2:59:18 PM UTC-5, Adam Prescott wrote: 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

[git-users] Re: [newbie] convenience function: overwrite from remote?

2012-08-17 Thread Tom Roche
Tom Roche Monday, May 7, 2012 10:09:29 AM UTC-7 How to [easily] overwrite managed files in an existing directory with the latest versions from a remote branch/repo, without merging or whack-n-clone? as defined @ top of thread https://groups.google.com/d/topic/git-users/vYnSjP5ueXs/discussion

Re: [git-users] Re: [newbie] convenience function: overwrite from remote?

2012-08-17 Thread Łukasz Siwiński
CURRENT_BRANCH=$(git branch /dev/null; if [ $? -eq 0 ]; then echo $(git branch | grep '^*' |sed s/\*\ //); fi) Does Your 5th line is missing closing bracket or maybe I don't understand something? Pozdrawiam, -- Łukasz Siwiński 17-08-2012 23:39, Tom Roche tom_ro...@pobox.com napisał(a): Tom