Deploy a Website 4/7


#1

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.


#2

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.


#3

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 https://github.com/hakeem1106/hakeem1106.github.io.git
$ git remote -v
origin https://github.com/hakeem1106/hakeem1106.github.io.git (fetch)
origin https://github.com/hakeem1106/hakeem1106.github.io.git (push)


#4

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


#5

soooooooooo....

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

sound about right?


#6

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


#7

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


#8

i had to start with
$ cd my-user-name.github.io.git

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


#9

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


#10

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


#11

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