Quick description of issue: I have a remote repo (on GoDaddy server, not my choice :S ) with a post-receive hook that pushes chages to live site files. This all works great, but how do I get the repo to detect changes to the live site code if someone FTPs in and changes something?
At the moment Git doesn't detect any changes so I don't know if I'm writing over someones else on our team's changes... :(
Any help would be awesome.
Until then I'll just download any files off the server before I work on them, that way at least I'll have the latest versions downloaded to my local repo. We are not likely to modify the same files at the same time in the future.
Thanks guys, your help is greatly appreciated.
Elegant, understated, yet immensely complicated to construct.
I think most of the other suggestions are pretty ridiculous and over the top...
What do you think?
I have successfully managed to create a repository on a GoDaddy shared hosting plan, I have added a post-receive hook so that when I publish from my local repository it goes to the remote repo and then gets copied onto the live server for all to see.
This is great and I'm amazed I got it to work, but one thing that's not working is the ability to pull changes to the live site files into my repository. I have changed a file via FTP so that I could see if the changes would be detected within my remote repo, and subsequently show up in my local repo when I sync the two up. Unfortunately no changes are detected.
So my question is this: how to I get my remote repo to detect any changes that are made to the remote files?
Any help would be awesome, I've no idea how to accomplish this.
Any ideas guys?
I'm not commiting anything on the remote repository.
The reason I explained making changes via ftp was not because I want to do so, but because the person who initially built the site in question uses ftp to upload changes and doesn't use git, so if he changes files in the server I won't know, unless I download whichever files I wish to modify via ftp and then compare them to my local repository.
This process doesn't seem ideal, I just wasn't sure if git had any clever features that could scan the live files and flag up those that have changed, obviously not based on my findings and what you have mentioned.
I'm commiting changes to my local repository. Then using GitHub for Mac to sync with the remote repository. The remote is then updating the live files on the server via a post receive hook.
I followed this tutorial to make it work: http://www.adamboother.com/blog/install-git-on-a-godaddy-shared-hosting-account/
I am not familiar with staging.
Would that be OK with you?
Thanks in advance ! XD
- Web Developer / Designer, 2012 - presentSharepoll.com
- The IndependentContributing Technology Writer, 2011 - present
- HobzyCommunity Team & SEO Boff, 2014
- Bytefish.comSenior Editor, 2010 - 2012
- NBTY EuropeSocial Media & Brand Protection Manager, 2011 - 2012
- De Montfort UniversityMultimedia Design BA - First Class with Honours, 2000 - 2003
- North Warwickshire and Hinckley CollegeGNVQ in Advanced Computing & IT - Distinction, 1998 - 2000
- Pako - Car Chase Simulator
Another Girl in the Hangout (NSFW) - original song by Hanna Silver
*Contains adult language As requested, here is a good quality recording of my original song about Google Plus Hangouts. Hangouts are video c
How to Add a Custom Twitter Button to Your Website | Webpop
A quick guide to creating custom twitter buttons with custom design. It's easier than you think.
The Independent | News | UK and Worldwide News | Newspaper
Independent News - Breaking news, comment and features from The Independent newspaper - The Independent Newspaper
Whey Protein | Sports Nutrition | Supplements | Bodybuilding Supplements...
Online supplement store in the UK offering a full range of high quality sports nutrition and protein supplements, also includes high quality