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" napisał(a): > > Tom Roche Mo

[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/discus

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

2012-05-07 Thread Peter J Weisberg
On Monday, May 7, 2012 10:09:29 AM UTC-7, Tom Roche wrote: > > > How to just overwrite managed files in an existing directory with the > latest versions from a remote branch/repo, without merging or > whack-n-clone? What I mean: > > As previously noted > > https://groups.google.com/forum/?fromg

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

2012-05-07 Thread Thomas Ferris Nicolaisen
Hi Tom, I'm afraid I don't really understand the use-case here, or what these clusters are about. But it sounds like multiple users have to share one work tree (meaning non-bare) repository. Am I right? While this sounds like highly unusual workflow (usually people have their own separate repo