Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Hacker NewsEnglish · 8 days ago

Don't create .gitkeep files, use .gitignore instead

adamj.eu

external-link
message-square
4
link
fedilink
7
external-link

Don't create .gitkeep files, use .gitignore instead

adamj.eu

RSS BotMB to Hacker NewsEnglish · 8 days ago
message-square
4
link
fedilink
Git: Don’t create .gitkeep files, use .gitignore instead - Adam Johnson
adamj.eu
external-link
Git only tracks files, not directories. It will only create a directory if it contains a tracked file. But sometimes you need to “track” a directory, to ensure it exists for fresh clones of a repository. For example, you might need an output directory called build.

Comments

alert-triangle
You must log in or # to comment.
  • ikidd@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    ·
    8 days ago

    That seems obvious as fuck.

    • jacksilver@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 days ago

      It’s talking about how to track empty directories. Maybe I’m just lazy, but I just throw a readme or something in an empty directory if I want it tracked.

      • ikidd@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 days ago

        touch me.txt

  • nous@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 days ago

    Why do this at all. Design your tools and systems to create directories in the repo that are needed if they don’t exist.

Hacker News

hackernews

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !hackernews@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 424 users / day
  • 1.98K users / week
  • 3.76K users / month
  • 9.37K users / 6 months
  • 2 local subscribers
  • 4.42K subscribers
  • 44.7K Posts
  • 21.8K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org