I have a folder and I don't want to push that folder into the git repo when I do git add .
, commit and push my work.
Is there a way to avoid that folder getting pushed to the repo?
How can I do that
Asked
Active
Viewed 1,579 times
0
-
2Possible duplicate of [What is .gitignore exactly?](https://stackoverflow.com/questions/27850222/what-is-gitignore-exactly) – Mureinik Jan 02 '19 at 05:43
2 Answers
0
Create a .gitignore
file in the root folder,
and simply put the name of the file/folder you don't want to track in it.
Check git documentation for more.