Transfer from industry to production

I have a production server from some hosting company, so I can not host the git repository there.

I want to check the differences between my latest version in the code with the sources of the prod server (its php site).

I think someone changed the stuff in prod without updating it in git. How can I check this stuff? Or maybe a merger of changes or something else?

Any guidance recommendations?

My version control is git, the site is a cakephp based site.

+3
source share
3 answers

, (.. , ) . ( git diff gitk) ( ).

+4

git status

git log

, / .

gitk

gitK

0

: , .

a:

 git --work-tree=/path/to/ftp/copy --git-dir=/path/to/your/local/git/repo/.git status

This way, you can find out what has changed without erasing anything in your original working tree.
If you want to commit, having a clean state in the current working directory (as svick mentioned in his answer , committing or getting stuck is recommended first.

0
source

Source: https://habr.com/ru/post/1771106/


All Articles