we run git and I have 2 branches: LIVE and DEV. There are 2 servers 1:LIVE and 2:DEV. They both are linked to respective remote branch.
Sometimes we need to "completely reset" the DEV server to the latest version of LIVE. I understand I can merge; I can checkout ... but the problem is that in the meantime many files 'may' have been added to DEV ... so what I would want to do is kindoff "completely wipe" DEV, load it with LIVE and send the new update to DEV remote: this way
local DEV == local & remove LIVE (exact copies) remote DEV = local DEV (and thereby now same as previous)
hmm does that make any sense?
My thinking was to
- Reset and sync DEV server with LIVE code? OR to overwrite LIVE -> DEV branche on remote?
- How do I remove all new files that are not in git? (they should be removed)
Otherwise formuluated: how do I sometimes completely reset my DEV server code/branch and make it an exact copy of the LIVE branch (no files more, no files less)
Many many ! thanks