Demo for the git lesson in CB Noida
- Creating the folder
- git init (Initializes the git repo in that folder)
- created a new file
- git add FileName.extension
- git status (showed us that the file added above was ready to commit)
- commit the file with a message (git commit -m "message")
- made few more commits
- found out the commit hashes by git log
- went to an older commit by checking out its has (git checkout hash)
- made a new branch by writing git checkout -b
- made some commits to this new branch
- merged the new branch into master (git merge branchName)
- resolved conflicts
- tried creating an orphaned branch (git checkout --orphan branchName)
- visualized the git history by git log --graph