-5

Plese find the image attatchedI'm Developing an MauiApp on my windows machine and on GitHub Desktop there are many unnecessary changes which are appearing . these changes are related to bin/obj and other files ,Due to which it gets very hard for me to push the required changes because it is very hard to find and select those important changes among these unnecessary changes which are in thousand , does anyone know how to resolve them.

7
  • 1
    Sounds like perhaps you created your git repo in the wrong place? Or you need a better gitignore file? Commented Jan 5 at 15:31
  • 2
    Indeed, adding obj/ and bin/ to your .gitignore file is probably all you need to do. Commented Jan 5 at 15:41
  • docs.github.com/en/get-started/getting-started-with-git/… Commented Jan 5 at 15:43
  • github.com/github/gitignore/blob/main/VisualStudio.gitignore Commented Jan 5 at 15:44
  • 1
    Changed files means that they are already tracked and .gitignore won't help. You have to untrack the files. Let me find a duplicate question (this has been answered time and time before) Commented Jan 6 at 8:07

1 Answer 1

1

The unnecessary changes in your GitHub Desktop related to bin/ and obj/ folders can be resolved by using a .gitignore file.

In the root directory of your MauiApp repository, create a new file named .gitignore (if it doesn’t already exist).

Add the following lines to the file to ignore the bin/ and obj/ directories: bin/ obj/

git add .gitignore

Then you can do git commit , followed by git push.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.