0

I am currently doing the CS50W course and was trying to submit Project 0 (Search). I was very confused with the submission process git and submit50. On the project page, it said

Otherwise, using Git, push your work to

https://github.com/me50/USERNAME.git

, where

USERNAME

is your GitHub username, on a branch called

web50/projects/2020/x/search

When I visit https://github.com/me50/USERNAME.git I am redirected to the final project page of CS50. And there on GitHub there was an option to Switch branches/tags so I typed in web50/projects/2020/x/search to create a new branch so I can submit my project. But now this new branch has become the default branch and it contains the code for my CS50 final project. Even https://cs50.me.cs50w (the page to check submissions) shows that

Your submission has been received. Be sure you've submitted your Google Form as well! It may take up to three weeks for your submission to be graded, please be patient. Also note that your submissions will not necessarily be graded in order.

Meaning it has received my CS50 final project code for my CS50W project 0 submission. Please Please Please help me as I have 0 ideas what to do now.

2 Answers 2

1

Let's try to sort this out. It sounds like you created the new branch from your final project branch, which would have copied those files to it. You should be able to clone the web50/projects/2020/x/search repo, then git rm the files you don't want there, then push a new commit with just your search files.

In general, this is the usual way of committing your project to the git branch:

git init
git remote add origin https://github.com/me50/USERNAME.git
git add -A
git commit -m "Submit project 0"
git push origin master:web50/projects/2020/x/search

I'd suggest that if you are still confused on this, you join our Discord server (http://discord.gg/cs50) and the #cs50-web channel there, as it's quite an active community of your fellow classmates.

0

I would say just use this submit50 web50/projects/2020/x/search

  1. Prior to this I created a git repository cs50.
  2. Then cloned it and in local repository. So all the commit and pull was happening in this new git repository.

But the submission has to happen on a specfic location: https://github.com/me50/USERNAME/blob/web50/projects/2020/x/search/

So Git push was not straightforward.

  1. Instead I just downloaded submit50. Then went to my project0 folder and executed this command from terminal:

submit50 web50/projects/2020/x/search Done!!

It will ask for git user id: I used the same user id that I cxreated in step 1. Also, need to provide the key. This is not password. Password will not work. you will need to create personal access token as outline here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .