echo Hello World > a.txt
type a.txt
git status
git add .
git status
git commit --message "Add first file"
git status
git log
echo Hello Universe > b.txt
echo Hello World again >> a.txt
git status
git add .
git commit --message "Fix a, add b"
git log
git checkout [revision] .
git status
echo Hello Moon > a.txt
git status
git reset --hard
git status
type a.txt
git checkout master
git branch newVersion
git checkout newVersion
echo Hello HTL > c.txt
git status
git add .
git commit --message "Add c"
git checkout master
dir
git checkout newVersion
dir
git checkout master
git merge newVersion
git checkout -b newFeature
git checkout master
echo Hi >> a.txt
git add .
git commit --message "Extend a"
git checkout newFeature
echo Hi >> c.txt
git add .
git commit --message "Extend c"
git checkout master
git merge newFeature
- Create repository on GitHub
- Include readme.md and license file
- Clone repository
- Add a file locally and commit your changes
- Push changes using
git push
- Follow Set up git to configure your Git client
- Use a graphical client to access GitHub repository