Skip to content

Places to Create Git Repositories execrise is poorly worded #1028

Open
@novica

Description

@novica

How could the content be improved?

It seems the point of this execrise is to teach that you could accidentaly do git init twice in the same directory and thus checking for status is good practice.

However it is factually incorrect.

  1. Git does not track folders. So when you say "repository will track all files, sub-directories, and subdirectory" this is not correct. Git ignores empty folders. It will not automatically track an empty folder. Maybe there should be a point explaining this

  2. Git repositories can be nested https://git-scm.com/book/en/v2/Git-Tools-Submodules (although this is an advanced topic). So, this is not correct: "Git repositories can interfere with each other if they are “nested”".

Which part of the content does your suggestion apply to?

https://swcarpentry.github.io/git-novice/instructor/03-create.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions