Question

I am using a Git Repository to manage my project, Now when i try to commit i see there are some impoertant file like content/image , scripts , etc files in untrack files Why?

Is there any way to resolve this?

Regards, vinit

Was it helpful?

Solution

You have to use "git add [wildcard or directory or file(s)]" first to add your files to the versioning system GIT. Manual page is here: https://www.kernel.org/pub/software/scm/git/docs/git-add.html

And the git book is worth a read.

Also I liked gitready very much.

Happy coding

OTHER TIPS

If your Git repo has been initialized on GitHub (and then cloned), it is likely to come with a .gitignore (as well as a README.md, and even a LICENSE file).

Check if those files aren't ignored by the rules in the .gitignore.

You can do that with:

git check-ignore -v scripts 

You can edit that file to remove the rules you don't want, then a git add . will add:

  • the modified .gitignore files
  • the files that were previously ignored.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top