[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