Re: git push stages original version on server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Pushing to a non-bare repository is discouraged.

- How can I have git automatically checkout pushed changes on the server?

I think you could in principle add a hook that does the "git checkout" or "git reset --hard $(git symbolic-ref HEAD)", but I suggest pushing to a bare repository and have the hook trigger a "git pull" elsewhere.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]