repository - Setting Up Git With A Network Drive And Rsync -
i have computer development, network drive, , server runs website.
network drive: think should have repository on network drive , checkout files drive when ready website. there difference between checking out files bare repository versus having working directory? if so, better?
server: think should use rsync copy checked out files website directory.
dev computer: work directly on files on network drive, or have separate repository? preferably, have files want newly edit on computer.
any appreciated.
preferably, have files want newly edit on computer.
that's opposite of how git works. git distributed version control system: all files , complete history of files stored in every copy of repository. has quite few advantages, including ability work offline.
you have 3 repo's. store primary git repository on network drive bare repository, push , pull there normal repositories on both development machine , server. push development machine central repository when you're done coding; pull central repository on server when want deploy.
you won't need rsync.
Comments
Post a Comment