This project will let you practice creating a new project including creating a git repo for it, adding it to GitHub on your account, making changes, commiting them, and pushing them.
- Create a new Xcode project called "Pets".
- It should display a table view with a list of your current and past pets. (If you've never had pets, you can instead list your favorite animals.)
- Build the project using a
UITableViewController
with a "Basic" table view cell style.
- Using Terminal,
cd
to the directory containing your Xcode project. - Initialize a new git repo using
git init
. - Add all the files in the directory to the repo using
git add
. - Commit the files using
git commit
.
- Go to GitHub and create a new project called Pets. Do not initialize the repo with a README or .gitignore file.
- Follow the instructions shown on GitHub to add the GitHub repo as a remote origin to the repository on your computer.
- Push your Xcode project to GitHub.
- Modify your project by adding a list of animals you'd like to have as pets (be as fanciful as you want).
- Add the modified file(s) to the git staging area.
- Commit the modified files.
- Push your changes to GitHub.
- Clone the repo from GitHub to a new folder on your computer (e.g. your Desktop)
- Open the newly-cloned repository's Xcode project.
- Build and run, making sure it works and shows all the pets you added, including those you added in Part 4.
Submit your project to your PM by sending them a link to your repository on GitHub via Slack DM (Direct Message).