0

thanks in advance for taking your time to help me and others that may be stuck at the same point.

I've installed Magento on my machine, created .gitignore following documentation, made change on a file, made a commit, and pushed to my repo. On other machine I installed Magento, and pulled the repo according to the documentation, but I get an error when pulling the repo:

error: The following untracked working tree files would be overwritten by checkout

I think this is happening because this process is not really the right one. Where I'm getting it wrong?

1 Answer 1

0

I found a solution to this: fetch all files and reset to master branch. But I think this isn't the best way to work. Must have some other way.

git fetch --all
git reset --hard origin/master

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.