This repo contains code files used in workshop.
# To watch the status of your local repo
git status
# To add files in stage area
git add <file-name>
git add .
# To save the changes permanently in history (by creating versions)
git commit -m <message>
git commit -am <message>
# To watch your commit history
git log
# To push your commited changes (or versions) to github
git remote add origin <link-of-your-project>
git push origin master
# To download whole code present on GitHub
git clone <link-of-project>
# To pull only changed code from GitHub
git pull origin
# To see all branches present in your project
git branch
# To create a new branch
git branch <branch-name>
# To delete branch safely
git branch -d <branch-name>
# To delete branch forcefully
git branch -D <branch-name>
# To rename branch
git branch -m <new-name>
# To change from one branch to another
git checkout <branch-name>
# To see the previous versions
git checkout <commit-index>
# To create a new branch and move to it
git checkout -b <new-branch-name>
# To merge branches
git checkout <final-branch-name>
git merge <branch-to-merge>
# To cancel merge process
git merge --abort