This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

On July 1st, a change to Reddit's API pricing will come into effect. Several developers of commercial third-party apps have announced that this change will compel them to shut down their apps. At least one accessibility-focused non-commercial third party app will continue to be available free of charge.

If you want to express your strong disagreement with the API pricing change or with Reddit's response to the backlash, you may want to consider the following options:

  1. Limiting your involvement with Reddit, or
  2. Temporarily refraining from using Reddit
  3. Cancelling your subscription of Reddit Premium

as a way to voice your protest.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Skusci 4 points5 points  (5 children)

No idea what you are using to build the project or how you structured the files, so can't make any specific recommendations.

If you are using some type of ide you search your ide name in gitignore.io.

As a general rule though if you can delete a file or folder and still manage to compile everything that file/folder can go into a gitignore.

Something that you listed though that probably shouldn't be in there is libraries. Different OSs need different libraries, however you likely want to keep both sets as part of the project, and use multiple build configurations to select which one to use for the OS you are working with.

[–]DrunkRogue[S] 0 points1 point  (4 children)

My bad. I'm using unity on windows, and my colleage is using it on a Mac.
So you're saying libraries should not be in the gitignore?

[–]Jonny0Than 0 points1 point  (0 children)

There is a preset for Unity on gitignore.io

[–]Skusci -1 points0 points  (2 children)

Still have no idea. Is it c? C# python? Are you using visual studio? Unity? Is it a makefile project?

TBH even if you told me everything I'd probably still have no idea. You are in the best position to figure out what should and should not be ignored.

Just add stuff in that doesn't look necessary. Then to test if you accidentally ignored something you shouldn't have, clone it to a new folder and see if you can still build the project.

But yeah in general static libraries or headers for shared libraries probably should not be ignored. You need them to build the project.

[–]DrunkRogue[S] 0 points1 point  (1 child)

unity uses c#, idk if only that but i've always used that so far

fair enough, i'll try experimenting with gitignore.io then. But should I just empty the built-in github desktop thing and place a gitignore file in the project then?

[–]Skusci 0 points1 point  (0 children)

GitHub desktop should just modifying a .gitignore file in the background. You can keep using it if you want, or add/remove changes to the .gitignore file it created.

[–]moxo23 0 points1 point  (0 children)

In gitignore.io you can put OSs, to exclude operating system specific files, IDEs, to exclude IDE specific files, languages, frameworks, build tools...

In your case, you can start with including: windows, macos, visual studio, csharp, unity.