Deploy a Website 4/7


Hello, so I'm on 4/7 in this course, where I need add a remote origin. I had the correct URL in place, yet I ended up with the message

fatal: Unable to read current working directory: No such file or directory

Any insight? I'm unable to read the directory, remote -v, or remove any remotes or execute any other command.


It would be interesting to know what the exact command was that you used to get that message.
It might also be useful to know what your current working directory is.


I get here, and it does nothing. The instructions do not update at all. Does this look correct?

$ git init
Initialized empty Git repository in /home/ccuser/workspace/daw/.git/
$ git remote add origin
$ git remote -v
origin (fetch)
origin (push)


You should create a repository in the website's directory, see the path that git says it initialized in?



$ git add repository /home/ccuser/workspace/daw/.git/

sound about right?


That sounds incredibly wrong.

Until you've picked up on the "language" or patterns or however it should be described, writing something and hoping git will understand it and do what you want.. not gonna work out.

Figure out which action it is you want to be doing and then consider what could be typed to accomplish it. That may involve some googling, or using the --help option but I know that's not easy reading when you don't know what to look for.

So, desired action is to create a repository in some particular directory. Soo you'll need to know the directory location, how to create a repo, how to specify where to create it


i figured it out, i back tracked. make sense now


i had to start with
$ cd

made a world of difference and it went to the next stage once i use the git init command and git remote add origin command


I think that directory name will work, the instructions suggest that it be named personal-website though, just keep that in mind if it complains

It can be safely renamed, the repository won't be affected


yea the the "my-user-name" was a dummy. used my real one in the exercise


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.