---
# System prepended metadata

title: Facebook iOS University

---

# Facebook iOS University
## Submitting Assignments
This page explains the steps for submitting assignments via Github.
1. **GitHub Repository** => Create a new GitHub repository for each week's assignment.
    * **Note:** Do not create a new repository if the assignment is a continuation of the same project from the previous week. In this case it's preferred to use the same repository for all weeks of the assignment.
    * Add a .gitignore to your project to avoid storing compiled and local files in git.
    * If needed, review how to work with Git and GitHub with this handy tutorial on using Git from the command line.
2. **README Template** => Every submission must be accompanied by a ![](https://i.imgur.com/lnxhyFi.png) using the readme template provided with the assignment.
    * In your project repository, add a ![](https://i.imgur.com/lnxhyFi.png) file in the root directory that contains the contents of the README template for that assignment.
        * If the assignment is a continuation of the same project from a preview week, add the new template to the end of the previous README instead of creating a new file.
    * Make sure to check off the user stories you've completed.
3. **GIF Walkthrough** => Your ![](https://i.imgur.com/lnxhyFi.png) must also contain a GIF walkthrough using LiceCap of the app demonstrating how it works with the user stories completed. Imgur is a great service for hosting the GIF walkthrough and then linking to it from the README.
    * When using Imgur, you can right-click on the gif and choose "Copy Image Address" to get the correct address. Make sure the address has a![](https://i.imgur.com/gKn9bvm.png) extension. If you end up with a url that has a ![](https://i.imgur.com/NHBMWQG.png) extension, removing the ![](https://i.imgur.com/NeIBwYU.png) and changing this to ![](https://i.imgur.com/gKn9bvm.png) will ensure the gif renders on GitHub.
4. **Make sure you've pushed all your latest code up to GitHub** => To check this, you can browse your repository on GitHub to make sure some of your latest changes are present there.
5. **Submit Assignment** => Once you have **completed all required user stories and added a README as described above** then you are ready to notify us that you are ready for an instructor review, go to the "Assignment Tab" for the project and click the "Submit" button on the right-hand side:

![](https://i.imgur.com/gsfMhEg.png)

In the dialog that appears, enter the required information about your project:

![](https://i.imgur.com/aMiOhed.png)

Then press "Submit" at the bottom to finalize your submission. Note that **you can always update your submission at any time** in case you want to re-upload the GIF or update the hours spent.

**NOTE:** If you recorded your app walkthrough as a video file instead of a GIF then please use LiceCap to record a preview of the full video included in the project README.

### Ensuring your Submission is Valid
To ensure you get credit for your submission, review the following items:
1. Can you see your **latest code** on GitHub?
2. Does your README use the provided **readme template**?
3. When going to your main **repository page** on GitHub, can you see your README and does your **GIF walkthrough** start playing?
4. Does your app have all of the required User Stories?
### Assignment Scoring
Check out the project rubric for a detailed break down of how assignments are evaluated.
### Terminal Quickstart
#### Starting the Terminal
A quick primer on the terminal can be found in this guide. Open up the **terminal application** on your Mac by opening up your ![](https://i.imgur.com/uhhfIKg.png) folder, then open the ![](https://i.imgur.com/jOQ0yre.png) folder:
![](https://i.imgur.com/E5dwWRL.png)

You can also use spotlight pressing "Cmd + Space" and then typing "Terminal". Now inside the terminal, we need to switch to your project folder, such as
![](https://i.imgur.com/FrKjpNb.png)
![](https://i.imgur.com/Xz0yLCV.png)
Next, make sure the ﬁles look correct and the folders are listed from your app:
![](https://i.imgur.com/JkUWy69.png)
#### Repository URLs
There are two types of repository URLs, HTTPS and SSH:
* HTTPS: ![](https://i.imgur.com/xrlXZ78.png)
* SSH: ![](https://i.imgur.com/NUKlZXB.png)

The general workflow is the same for both URLs, but there are some differences in the specifics of commands.
#### SSH Setup
You'll first need to register your machine's SSH keys with your Github account. You only need to perform this step **once** for each machine you use.

Once you've added your SSH key, the SSH repository URL will look like ![](https://i.imgur.com/ZpzdRGX.png) but for your username and project. You won't need to provide credentials (username/password) for any further git commands.
#### HTTPS Setup
There is no additional setup required for using HTTPS. However, you'll need to enter your username and password each time you run the ![](https://i.imgur.com/KZKN5uz.png) or ![](https://i.imgur.com/ZGFhDih.png) commands:
![](https://i.imgur.com/kwOfRVD.png)
#### Pushing Code
To push your code, simply initialize your git repository and then connect the repository to your local project:
![](https://i.imgur.com/egw1ESP.png)
If the repository **is not setup**, then create the git repository with:
![](https://i.imgur.com/H5d9ZyB.png)
**Setup a .gitignore in the root of the directory** which prevents certain files from being committed.
![](https://i.imgur.com/KCDqmET.png)
Check if you **already have an origin** with the following command:
![](https://i.imgur.com/r1gqGSv.png)
If the above command prints something out like below, then you have an existing origin connected.![](https://i.imgur.com/vXPsisG.png)
Note the above URL is SSH, but it may also be an HTTPS URL. 
You can remove the existing origin with:
![](https://i.imgur.com/6zEAUcm.png)

Next, you want to add the remote repository for your Github repo:

**HTTPS:**
![](https://i.imgur.com/Qmgo7X9.png)
(remember to replace ![](https://i.imgur.com/Yju1NWD.png)and ![](https://i.imgur.com/uutHkru.png)with your user name and repo, respectively).

**SSH:**
![](https://i.imgur.com/1LNj5DX.png)
(remember to replace ![](https://i.imgur.com/Yju1NWD.png)and ![](https://i.imgur.com/uutHkru.png)with your user name and repo, respectively).

Since you connected a new origin, you'll need to make sure your local repository is synchronized with the remote repository (![](https://i.imgur.com/lLqdLVq.png)). That is, you want to make sure your local repository has all of the files that are in the remote repository. You can do this with the pull command:
![](https://i.imgur.com/N6FQoHY.png)
In the above command ![](https://i.imgur.com/UUD0Vil.png) is the name of the remote repo (which we added with the ![](https://i.imgur.com/d89cQkV.png) step, and ![](https://i.imgur.com/kF3BgJO.png) is the name of the branch.

Sometimes the ![](https://i.imgur.com/LbrKndt.png) command will need to merge updates from the remote repository into your local repository. As long as there are no conflicts, you don't need to worry about this automatic step. The ![](https://i.imgur.com/LbrKndt.png) command may open a vi editor asking you to provide a comment. If you don't know vi, you can quit entering the key commands ![](https://i.imgur.com/TaJtjZa.png).

You can now add the files to git using the SourceTree client or by typing:
![](https://i.imgur.com/LxmOyOd.png)
and now go ahead and push the code to Github with:
![](https://i.imgur.com/EtrBgSs.png)
If you use the command:
![](https://i.imgur.com/8ROmTmm.png) then you won't need to provide the ![](https://i.imgur.com/4TmuSyp.png) arguments anymore for this repository. The ![](https://i.imgur.com/ynpAfqn.png) flag tells git to set ![](https://i.imgur.com/4TmuSyp.png) as the default
repository and branch for all further commands, including ![](https://i.imgur.com/LbrKndt.png).

You can also use your favorite Git GUI (for example SourceTree) to do a lot of this process as well.
### Git References
Additional references for Git:
* Official Git Tutorial 
* Tensory's HowToGit
