"Terminated" message with git add wp-content/

Asked

Viewed 34 times

0

I’m getting a message when adding the folder wp-content in git.

Commando:

$ git add wp-content/

Answer: Terminated

What could it be? I tried $ git add wp-content/ -f, but I still get the message.

  • If you can share the entire output of the command, as well as the version of git, operating system, etc. Anyway, try to take that / there, just for starters.

1 answer

2

The Git is used for file versioning, not for directories. If you still want to use this directory even if it is empty, use a file .gitignore, and edit it to not recognize files within it in versioning.

You can find more information about . gitignore on Help from Github.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.