To be specific with the question i will list my scenario below,
I have local git version installed in my windows machine, this is where i do the development (in developer branch).
Then i upload it to the developer subdomain server for testing, once the testing is done i commit the local git to bitbucket based remote repository (developer branch in there).
In my local and bitbucket both have master which i merge when i come to a specific point.
this all looks good and working fine for me, but my problem comes when i wanted move the modified files to the live server (real live website), what is the best way to do this ? which out uploading one by one checking the changed files...
i have git installed in my live server too, but i need to know,
- how can do a pull to my live git from the bitbucket ?
- If i do a pull will it overwrite user files/folder such as user uploaded images (which is obliviously not tracked in git)
- If want to untrack files, ex user upload files/ i use rm -rf {filename} but in this case it deleted the files from the os, is there a way to untrack without deleting.
- or is it a good idea to track everything including user files in the git ?
i am very new to git so, please give me some advice on how to do a proper development,local and live versions in git.
thanks