Create a new Github repo with name "learnjavascript".
Tick .readme
checkbox while creating repo.
In Description write "Training Repository".
Now clone this repo locally on your laptop.
Now open repo folder in gitbash or terminal.
Add 3 new files index.html, style.css, script.js.
Now add 5 commits:
- In first commit add index.html
- In second commit add style.css file
- In third commit add script.js file
- In fourth commit modify script.js file
- In fifth commit delete style.css file
Now create new branch.
In new branch add 3 commits :
- In first commit add style.css file
- In second commit add other.html file
- In third file modify index.html file
Now verify changes in main branch and new branch.