V
V
VadimFox2019-12-04 08:35:48
git
VadimFox, 2019-12-04 08:35:48

How to update files in master?

Whether I, or the second programmer, overwrote the file on the prod without a git (yes, I know, it's a bug), now my edits are not applied (which I push normally, with a git), help, can you push the update with "brute force"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2019-12-04
@Decadal

git reset --hard origin/master
But note that this command will break all uncommitted changes that are tracked by git. Run it on a copy of the source
of the prod. *Master - the branch that the prod usually looks at. If you don't, please point to the correct branch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question