-2

I am new to git and am using the github desktop software. Everytime I make a change in my project lots of other files which get changed in the background also appear in the changes section of git. How would I stop git from picking up these changes, as I only want to upload the code I am editing. Thanks! https://gyazo.com/e28007bbb220d22511deabf236f569bb

mkrieger1
  • 10,793
  • 4
  • 39
  • 47
damri
  • 29
  • 4

2 Answers2

1

You need to create a .gitignore file at the root of your project and list the folders and files you don't want git to track like this:

.idea
bin/

You can find many examples on this git repository if you don't want to do it manually: https://github.com/github/gitignore

Valentin Briand
  • 672
  • 1
  • 5
  • 14
0

you can use gitignore in you git folder. Within this file you can specify what files you dont want to have tracked.

Make sure you name your gitignore like this:

.gitignore

Documentaion for gitignore: https://git-scm.com/docs/gitignore

Here your can create your .gitignore for your programming language: https://www.toptal.com/developers/gitignore

Cheers

Schwenk
  • 45
  • 5