-1

I have local copy of my repository from Server. I have some files which i don't want to commit.

How to add that file in local to gitignore? So once i push my data to server, that file not added

Jackson
  • 1,426
  • 3
  • 27
  • 60

1 Answers1

1

Since you already have a .gitignore file, all you need to do is edit it and add relative file paths (of the files that you don't want to commit) to it, one per line.

However, you might not want commit your .gitignore file, otherwise your file names, that you didn't want to commit, will be visible to everyone else.

ketan vijayvargiya
  • 5,409
  • 1
  • 21
  • 34