Git
Exercise1
- Create folder named git_exercise
- Navigate inside the folder
- Initialize it to empy git repository
- Create file named first.txt and add a row "row 1"
- Add all files to the staging area
- Commit with a message "my first commit"
- Add a row "row 2" to file first.txt
- Add all files to the staging area
- Commit with a message "my second commit"
- Reset your repo to the stage of the first commit and check that the row2 is deleted
- Reset your repo to the stage of the second commit and check that the row2 is on the file
- Create new branch named hotfix1
- Create new file named second.txt and add some text to it
- Add all files to the staging area
- Commit with a message "hotfix1 commit"
- Checkout to master
- Check that file second.txt is "not on the directory"
- Merge branch hotfix1 to master
- Check that file second.txt is on the directory
Video about the exercise