GIT add production server -
i have production server work without using git, have files on pc , upload updates filezilla.
i discovered git , use replacement filezilla.
i configured git on pc , did push of project files in repository, not know configure updates on production server.
the legacy way define bare repo on server , push bare repo, combined post-receive hook checkout received files in folder of choice/
but git 2.3+, if want, can:
- initialize repo directly on target folder in server,
- add , commit everything
set:
git config receive.denycurrentbranch updateinstead
clone repo on local pc.
assume can use same ssh access must have set in filezilla:git clone user@server:/path/to/git/repo
make new commits,
- push directly non-bare repo
Comments
Post a Comment