Fix your Gitignore! (PLEASE)

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 37

  • @Cinarbayramic
    @Cinarbayramic 16 дней назад +31

    i dont use gitignore i want people to use all of my project

    • @mazazaza11
      @mazazaza11 16 дней назад +2

      no

    • @AWildAligned
      @AWildAligned 16 дней назад +3

      Do you just ship built executables along with your project?

    • @lowlevelgamedev9330
      @lowlevelgamedev9330  16 дней назад +16

      most giggachad dev

    • @lowlevelgamedev9330
      @lowlevelgamedev9330  16 дней назад +21

      @@AWildAligned I ship my OS along with my project 😎

    • @oussama7132
      @oussama7132 16 дней назад

      @@lowlevelgamedev9330 could you also ship me your pc? i'm gonna need a good one to run the project!

  • @oussama7132
    @oussama7132 16 дней назад +43

    gitignore? what's that? *commits API key*

  • @user-sb5vt8iy5q
    @user-sb5vt8iy5q 16 дней назад +15

    I use invered gitingore:
    *
    !src/
    etc...
    basically you have to manually add a file, it prevents accidentally leaking api keys or other private stuff

    • @testolog
      @testolog 16 дней назад

      for java/scala/kotlin okay) but not each language has src as place where is stored code)

    • @Nesdac-k1l
      @Nesdac-k1l 15 дней назад

      ​@@testologin most languages u can just put all ur code in src/ or at least all except an index/main file

    • @testolog
      @testolog 15 дней назад

      @@Nesdac-k1l u can put whatever u want, as u will build this sources. Just exists some standards )

    • @user-sb5vt8iy5q
      @user-sb5vt8iy5q 15 дней назад +1

      @@testolog exclude it manually

    • @vxcute0
      @vxcute0 14 дней назад

      this is good I will try that

  • @sledgex9
    @sledgex9 16 дней назад +2

    Those are gcc dlls probably because sfml was precompiled with gcc. If you instead included sfml source in your project and made it compile alongside your main project with the same compiler (msvc) you wouldn't have that problem. Or request the user to provide their SFML package location to CMake during configuration of your project. The user's SFML package should use the same compiler as your project. Also SFML should make their CMake scripts detected compiler discrepancy when included by 3rd parties.
    Honestly, this is a packaging shortcoming of C++. CMake has tried to provide facilities for this. I dunno about other package managers (conan, vcpkg etc). Other languages provide their own packaging system which supposedly takes care of this kind of dependency tracking (eg node and rust).

  • @fryfly5599
    @fryfly5599 16 дней назад +6

    dll files are often too big for github in my experience. I've had a few that exceeded the 100mb limit.

  • @KamiKagutsuchi
    @KamiKagutsuchi 16 дней назад +4

    Your personal development environment files shouldn't be in the gitignore. Then every person that works with your project has to add files that are only related to their own weird setup to the gitignore. Instead ide specific ignores should be put in the .git/info/exclude or ~/.gitignore (no clue what the equivalent is on windows)

  • @sussmusk
    @sussmusk 13 дней назад +1

    Can you please make a tutorial on Physics with OpenGL!!

    • @lowlevelgamedev9330
      @lowlevelgamedev9330  13 дней назад +2

      i am actually working at a physics related vid

    • @sussmusk
      @sussmusk 12 дней назад +1

      Oh nice! I would actually love to have a tutorial on that

  • @sledgex9
    @sledgex9 16 дней назад +2

    Another option is to always build to a location outside of your project source directory.

    • @kreuner11
      @kreuner11 15 дней назад

      Or just add a build folder and ignore the build folder in gitignore

    • @sledgex9
      @sledgex9 15 дней назад

      @@kreuner11 That's already mentioned in the video. Not explicitly but via the gitignore entries presented in the final shot.

  • @mkvalor
    @mkvalor 15 дней назад

    Even this video gives a bad template for the many developers who simply write their own Makefile. So the point is to spend a little bit of time understanding the sources of your projects and their outputs.

  • @its_momo_5995
    @its_momo_5995 16 дней назад +1

    I use noevim(nvchad specifically) and remember i have to put my build folder into gitignore, luckily since i know my folder structure and what um sending to github, i only need to hid the build folder, (i am leaving the cmake file since it makes it easy for anyone else just to cmake .. Then cmake --build . And get the executable

  • @blackstone12
    @blackstone12 16 дней назад +2

    I have always done it this way with my projets...I don't understand how you can use a preset tbh.

  • @AlexTsaava
    @AlexTsaava 16 дней назад +1

    Ok I wont

  • @mrcrackerist
    @mrcrackerist 16 дней назад +1

    Using Linux with cmake so build is the best to ignore :)

  • @rismosch
    @rismosch 12 дней назад

    Eh, googling and copy-pasting a gitignore is faster than manually stitching it together. When I encounter unwanted behaviour, I debug it like I would with any bug. Seems like a nothingburger to me.

  • @nylvon
    @nylvon 16 дней назад +1

    skill issue