Step 2
Add this content to README.md
:
# SleepTime App
A simple web application similar to sleepyti.me but limited to suggesting "wake up" times based on calculating sleep cycles.
* A sleep cycle lasts about 90 minutes, and a good night's sleep consists of 5-6 sleep cycles.
* If you wake up in the middle of a sleep cycle, you will feel groggy even if you've completed several cycles before waking up.
Save the file and then run the following command.
git status
Git should inform you that README.md
has been modified and that changes made to it have not been staged for commit.
Run the following command to stage the changes for commit:
git add README.md
And then, commit the changes:
git commit -m "Add description for this app"
Now, feel free to check the status (git status
) and logs (git log
).
I want to make the following change to the README.md
file to link to sleepyti.me web page:
-A simple web application similar to sleepyti.me but limited to suggesting "wake up" times based on calculating sleep cycles.
+A simple web application similar to [sleepyti.me](https://sleepyti.me/) but limited to suggesting "wake up" times based on calculating sleep cycles.
Once made the change, commit it
git commit -am "Link to sleepyti.me URL"
Notice I skipped git add
and instead used the -am
flag with the commit
command.
The
-a
flag automatically stages files that have been modified and deleted, but new files you have not told Git about are not affected.
I have the following history of changes when I run the git log
command:
commit 28bca5f1424cdeba23624db9deae765e4c97d793 (HEAD -> master)
Author: Ali Madooei <madooei@jhu.edu>
Date: Sat Sep 5 11:36:56 2020 -0400
Link to sleepyti.me URL
commit 79cbc98629aa98b11003c48b5a3a4cf79c78f292
Author: Ali Madooei <madooei@jhu.edu>
Date: Sat Sep 5 11:15:49 2020 -0400
Add description for this app
commit f034c1ea747a6ab6726681d60a7bd5b097ff40b8
Author: Ali Madooei <madooei@jhu.edu>
Date: Sat Sep 5 10:21:54 2020 -0400
Create README file