this is my first ever post and, please, forgive me if this sounds as a silly question but I have browsed many guides and posts and not found any solution to this.
As a complete beginner with Git I am studying the ’ Pro Git’ book by Scott Chacon and Ben Straub.
The authors suggest doing everything via the Command Line (I am on macOS High Sierra 10.13.4) so I am following their instructions but … when I get to
“ Initializing a Repository in an Existing Directory ”
I get asked to go to the directory I want to initialise in Terminal and to write its path followed by ‘git init’.
When I do that on an Xcode project folder I get the error: ‘it is a directory’. Fine.
Then I simply write $ cd \Users<username><nameOfAFolder> git init and press Return and I just get the title of the Terminal window changed to <nameOfAFolder> … while the book said I should get a ‘.git’ empty folder somewhere.
Could you tell me what am I making wrong?
I have already installed GitHub Desktop so I already have a GitHub folder into my Documents directory but I wanted to try the Command Line way anyway.
My doubt is also: is Git wanting a ‘home’ directory where all of my repositories will be stored or once I drag a folder to GitHub Desktop / manage to initialise it via Terminal it will be connected directly?
Thank you very much for yourtime and patience.