Skip to content
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

About git init #99

Closed
rgaiacs opened this issue Apr 21, 2015 · 3 comments
Closed

About git init #99

rgaiacs opened this issue Apr 21, 2015 · 3 comments

Comments

@rgaiacs
Copy link
Contributor

rgaiacs commented Apr 21, 2015

Related with #98.

What about replace

$ mkdir new-repo
$ cd new-repo
$ git init

with

$ git init new-repo
$ cd new-repo
@drj11
Copy link

drj11 commented Apr 21, 2015

I never knew that git init could be used to create the directory. It does seem tidier.

@iglpdc
Copy link
Contributor

iglpdc commented Apr 21, 2015

I agree it's tidier, but I'm not convinced of the change. The reason is that I want to stress that the creation of the directory and the creation of the repo are two different and independent processes. Novice learners don't have a clear picture of what the repo is, so they think that this directory is special in some way, different from a regular directory. Having two separate commands for that, stresses this point.

When I teach this, I create the new directory, show it around stressing that this is the same as any other, and that this is probably something they already had in their computer (say the thesis you are working on for months and you decided now to put under version control).

Also, instead of writing the command to create the dir, I just tell them to do it: "let's create a new directory in our Desktop, using the commands we've seen in the shell lesson", so they review the mkdir, cd and pwd. As this takes some time, I have also the chance to be sure that everyone is creating the repo in the right place.

@rgaiacs
Copy link
Contributor Author

rgaiacs commented Apr 21, 2015

@iglpdc Thanks for the comment. It makes sense to me and I'm closing this based on it. =)

@rgaiacs rgaiacs closed this as completed Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants