You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So at some point I got stuck and copied repos/lab_40 to my working directory as cloned_hello. When I checked what I got I found that I have a remote named origin. However, the command
$ git remote show origin
resulted in a nonexistent absolute path error message (/Users/.../working/git/git_immersion/auto/hello)
I don't know if it is valid or not, but it seems that when editing the .git/config file in the cloned repo:
url = ../hello
git could get rid of that absolute path and that error message.
Hmm, this might be tricky. The repos are built by actually running the commands in the lab programatically. What you're seeing is my build directory because I built labs last :P
I don't think git will set the relative path the way you suggest, unfortunately.
It looks like folks have had success with ~ to access the user's home directory. However, I don't think that will work for us since we don't know where git tutorial will be run from 🤔
Another idea would be to use a "bare repository" which seem to be more for sharing than the repositories in repos -- but I think it would move the ability to just copy the directory.
Open to ideas 😅 Perhaps we could just include a note in the lab to set it manually. Looks like the same problem in lab 50.
Activity
[-]prepackaged repos refer to nonexisting remote[/-][+]Prepackaged repos refer to nonexisting remote[/+]tonywok commentedon Jun 19, 2020
I familiarized myself with the build process when trying to fix #6. I'll try to figure this out when I get some free time. Thanks for reporting.
tonywok commentedon Jun 20, 2020
Hmm, this might be tricky. The repos are built by actually running the commands in the lab programatically. What you're seeing is my build directory because I built labs last :P
I don't think git will set the relative path the way you suggest, unfortunately.
It looks like folks have had success with
~to access the user's home directory. However, I don't think that will work for us since we don't know where git tutorial will be run from 🤔Another idea would be to use a "bare repository" which seem to be more for sharing than the repositories in repos -- but I think it would move the ability to just copy the directory.
Open to ideas 😅 Perhaps we could just include a note in the lab to set it manually. Looks like the same problem in lab 50.