git - Delete live site and pull in new code from repo -
git - Delete live site and pull in new code from repo -
i have local development environment , live server. on same server in home directory have git repository. date i've been moving files over, 1 @ time, via ftp. yuck
.
when ssh server , issue pull request bunch of merge conflicts. since know committed , pushed repo , of want, there way wipe out what's on production server , pull in repo?
i don't care old commit history, etc - i'm hoping way limited, or no downtime. thanks!
git fetch --all
git reset --hard origin/master
but careful overwrite local files in production server.
git
Comments
Post a Comment