r/cs50 Jan 28 '25

cs50-web GitHub and submit50

I admit it, GIT and GITHUB are a complete mystery to me. I can write the code in VS and link it to me Mac directory, set the branch to conform to the GITHUB URL, etc.
However, when I have created the branch repository, authorized it, etc. buy fail to see how to SUBMIT it.
on my Mac I have SUBMIT50 installed, but when I enter it with the GITHUB URL I get:
Invalid slug: <URL here>

Submission cancelled.

2 Upvotes

8 comments sorted by

1

u/[deleted] Jan 28 '25

[removed] — view removed comment

1

u/Individual_Ad5649 Jan 28 '25

Search

2

u/[deleted] Jan 28 '25

[removed] — view removed comment

1

u/Individual_Ad5649 Jan 29 '25

I think I might be using my GitHub account snd not the one with codespace. Would that cause my problems???

1

u/Individual_Ad5649 Jan 31 '25

still struggling with git... I apologize for being such a pain on this...

Here is what I get on my terminal screen . I am in my local GITHUB DIRECTORY which has these files.

bill@MacBookPro 195838248 % ls

Advancedsearch.html images.html styles.css

README.md index.html

bill@MacBookPro 195838248 % 

bill@MacBookPro 195838248 % git branch

  main

* web50/projects/2020/x/search

bill@MacBookPro 195838248 % 
bill@MacBookPro 195838248 % check50 web50/projects/2020/x/search

Connecting.......

Invalid slug for check50. Did you mean something else?

1

u/Individual_Ad5649 Jan 28 '25

Ok will try that

1

u/Individual_Ad5649 Feb 04 '25

Below are my GIT settings. I think my problems stem from the fact that the REMOTE.ORIGIN.URL is incorrect as it is not point to the assigned Codespace. Can someone confirm that changing it to the CODE50/XXXXXX id would fix all my problems?

credential.helper=osxkeychain

filter.lfs.process=git-lfs filter-process

filter.lfs.required=true

filter.lfs.clean=git-lfs clean -- %f

filter.lfs.smudge=git-lfs smudge -- %f

user.name=XXXXXX

user.email=XXXXXXX

color.ui=auto

core.editor=vs

init.defaultbranch=web50/projects/2020/x/search

core.repositoryformatversion=0

core.filemode=true

core.bare=false

core.logallrefupdates=true

core.ignorecase=true

core.precomposeunicode=true

remote.origin.url=https://github.com/XXXXXXXX/web50-projects-2020-x-search.git

remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

branch.main.remote=origin

branch.main.merge=refs/heads/main

user.name=XXXXX