Skip to content

sagarp2901/shirt-shop-angular

Repository files navigation

Getting Started

This repository exists to support the lab exercises that come with the Angular Fundamentals course offered by DEV6. Each lab exercise has its own branch with commits that reflect the changes you'll make as you follow the lab steps. You can choose to simply study those commits or you can write the code yourself.

To prepare for the process of coding the solution yourself, run the commands below.

  1. Get a local copy of the master branch.
git clone [email protected]:sagarpdev6/shirt-shop-angular.git
cd shirt-shop-angular

This gives you the completed version of the application.

  1. List the remote branches.
git remote show origin

When you clone a repository, you don't get all available branches.

  1. Get a copy of the branch for the lab you want to work on.
git checkout origin/<remote-branch-name>

<remote-branch-name> is the name of the branch that was listed in the output from the previous step.

  1. Inspect the commits in this new branch.
git log --oneline

Every lab-* branch has a commit whose message starts with "starting point...". This commit represents the master branch with some of the code removed.

  1. Check out the "starting point..." commit.
git checkout <hash-for-the-starter-commit>

<hash-for-the-starter-commit> is the first few letters from the commit hash. You will see a message indicating that you are in a 'detatched HEAD' state and a suggestion to check out a new branch name.

  1. Create a new branch to track your progress.
git checkout -b <new-branch-name>

<new-branch-name> is an arbitrary name of your choosing. The original branch should be left untouched since it contains the solution. You should commit your changes on your own branch as you work through the exercise.

  1. As you make progress, commit your changes.
git add .
git commit -m "describe what you did"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published