I am trying to submit the assignmet0 for CS50's Game Development. I have used git bash, just want to make sure what I did is correct and also asking if my understanding of git is correct. I did the following:

git remote add origin https://github.com/me50/USERNAME.git

With this I believe I created the repository as I have been told

git branch games50/assignments/2020/x/0

Then created that branch

git checkout games50/assignments/2020/x/0

I guess I kind of went to the branch

git commit -m "the name of the file with code"

This I did after I added the file already to my locar repository, thus adding it to the branch

git push -u origin games50/assignment/2020/x/0

With this I believe I submitted the branch to the repository previously created.

I believe my work is already submitted since it says so in the page to see your progress, is this way of doing it correct? If so, I hope it helps others that want submit their work but do not understand git.

  • I did the same thing I pushed the file to the git and it shows that its there but it keeps telling me that I haven't submitted anything some help pls. Aug 27 '20 at 15:07

What has been described here is all perfectly OK, but what I prefer to do is to simply upload all files in question to the CS50 IDE, make sure that the directory structure matches what has been described in the assignment, and run the submit50 command you need to.

Hope this works! If it does, please consider upvoting this post.

Good luck!


Is this correct? I am struggling to find a way to submit using git without using submit50 please respond if this is working.

  • It worked for me, but remember the initial steps in the git bash. If I remember correctly you have to go the directory where you have your work (using pwd to know where you are and cd desktop to move to desktop until you are in the directory of your work) and then type git init. Then I believe you have to type git add (your file) so the file you want to upload is already in your local repositery. Then follow the steps I included. Jun 5 '20 at 12:23
  • @JonMerladet Thanks that actually helped me..
    – Karan Garg
    Jun 28 '20 at 8:39
  • You're welcome. I also struggled until I watched an 1 hour video on youtube. Jun 29 '20 at 18:56

You must log in to answer this question.

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