Goal: Learn more basic commands and how to view history.
-
Make Changes and Commit:
- Modify the
README.mdfile. - Check the status and commit the changes:
git status git add README.md git commit -m "Updated README"
- Modify the
-
View History:
- View the commit history:
git log
- View the commit history:
-
Create a
.gitignoreFile:- Create a
.gitignorefile and add some files or directories to ignore. - Add and commit the
.gitignorefile:git add .gitignore git commit -m "Added gitignore file"
- Create a