Github synchronizing between local and production sites
I posted this on the github forum but i have not gotten any answers, maybe one of you know the answer. With all the caos going around our company quickly had to branch out to access other markets and to be able to serve the people in our community. In just a few days i created an ecommerce site where we sell produce and groceries directly to the public. Trying to get the site up and running i skipped a few process steps and now i'm not sure if what i have on my local matches with production. I'm using Bagisto as the base (https://bagisto.com/en/) and i have been using this guide to install the site (https://devmarketer.io/learn/deploy-laravel-5-app-lemp-stack-ubuntu-nginx/).
I work from home and the office, when i first push the project i did it from home. So now i'm trying to make sure that my office and production are synced. On the server i created a bare repository (git init --bare) and created a post-receive hook that places the files on the website. my github repository show:
$ git remote show origin
* remote origin
Fetch URL: https://github.com/dan3460/bagisto.git
Push URL: https://github.com/dan3460/bagisto.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (up to date)
but my production shows:
$ git remote show production
[email protected]'s password:
* remote production
Fetch URL: ssh://[email protected]/usr/seashore
Push URL: ssh://[email protected]/usr/seashore
HEAD branch: (unknown)
I know that my home and work computers matches with the github origin, but i don't know how to tell if my production is the same.
Thanks for the help
Please or to participate in this conversation.