I
I
ImPuuLsE2015-02-24 11:44:54
git
ImPuuLsE, 2015-02-24 11:44:54

Tell me about Git?

Hello! created gitignore:
themes/classic/css/*
files are being changed remotely via ftp in this folder...
Let's say I deleted some file from the locale (themes/classic/views/layouts/main.css), pushed the change... to delete it on the turnip...
when pulling from a server: error: Your local changes to 'themes/classic/views/layouts/main.css' would be overwritten by merge. Aborting.
How to be in this case? I do a git stash, and after that I do a pull, but the files in gitignore(themes/classic/css/*) are updated for some reason, although I don't need it...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2015-02-24
@ImPuuLsE

First, the themes/classic/views/layouts/main.css file does not match the themes/classic/css/* template. Git warns that uncommitted changes to it will be lost.
Secondly, you probably have ignored files already under Git control, which is why it tracks them.
Need git rm --cached path/to/file.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question