Exercise
A folder named services
has been provided that contains a series of API calls (via HTTP). We’ve used curl
to make requests to BigCo’s existing services and saved the responses to that folder.
Note: You can see the
services
folder’s content by executingcd services
andls
commands in the terminal provided below.
The task for this challenge is to move the services
folder (and all the API calls stored there) into the project repository.
Follow the steps provided below to complete this challenge:
- Create a directory named
onboarding
and initialize an empty Git repository using thegit init
command. - Copy the
ch02-http/git-readme.md
file to theonboarding
folder usingcp
command. - Move to the
onboarding
folder and add thegit-readme.md
file to Git using theadd
command. - Commit the changes using
git commit -m"Add Readme file"
. - Execute
git status
to check the status. - Move the
services
folder to theonboarding
folder by executing themv ../services .
command inonboarding
. - Now, use
git add
andgit commit
commands to commit those changes to the local repository. - Then use the
git push
command to push local changes to the shared GitHub repository in the cloud. To push local changes to the public GitHub repository, executegit remote add origin git@github.com:mamund/onboarding.git
,git branch -M main
, andgit push -u origin master
. Use your GitHub repository link instead ofmamund/onboarding.git
.
Note: Don’t forget to use the
git config
command before committing any changes to the repository.
Terminal
Get hands-on with 1400+ tech skills courses.