-
-
Notifications
You must be signed in to change notification settings - Fork 926
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Places to Create Git Repositories execrise is poorly worded #1028
Comments
Thanks for the observation. Regarding point 1., you are right, although I think this is a relatively minor detail since we are at the very beginning. But a short sentence, or simply saying 'non-empty subdirectories', could be done. Do you have any suggestion for small changes to this effect? |
How about this:
|
I would go one step further and suggest:
The .gitkeep idea is a nice one and fits with convention, but does presuppose that people know the dot syntax for hidden Linux files. Would this need an explicit mention? |
Yeah true. Bu there is a .gitignore section in the lesson as well. So hidden files get more mentions:) |
Fair point! |
I would agree with @froggleston. This is the very beginning of the lesson, and I would say it is a priority not to overwhelm the learner with additional information that is not essential at this stage. |
I read over the text a few times, and the way @froggleston phrased that paragraph makes more sense to me. I think the question should be also amended to include a file creation. Otherwise, the point of not tracking empty directories will be mute. If I do the two exercises in sequence, after I remove the |
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 forstatus
is good practice.However it is factually incorrect.
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
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
The text was updated successfully, but these errors were encountered: