Re: Question with git push

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: demerphq
Date: Tuesday, December 23, 2008 - 10:37 am

2008/12/23 Paul Vincent Craven <paul@cravenfamily.com>:

Or just git checkout -f


I think the general practice is not to push to non-bare repositories
unless you and the owner of the repository can coordinate things. This
either means you push and then tell them, or they set up a
post-receive hook (and understand the consequences of doing so). Of
course often you are both of these people and coordination is easy.

The post-receive hook would go in .git/hooks and would effectively execute:

  git checkout -f

on push. However this also means that the working directory will be
unilaterally updated every time someone pushes. Not something you want
to do in a truely shared non-bare repo.
Yves


-- 
perl -Mre=debug -e "/just|another|perl|hacker/"
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Question with git push, Paul Vincent Craven, (Tue Dec 23, 9:59 am)
Re: Question with git push, Peter Harris, (Tue Dec 23, 10:35 am)
Re: Question with git push, demerphq, (Tue Dec 23, 10:37 am)