This repository helps in understanding various git commands with examples. Git commands
- To list all the branches – git branch
- To check existing branch details – git checkout branch_name
- To commit (to put the code in staging area) – git commit -m “comments”
- To add new file in git – git add file_name
- To push all the changes in git repository in website – git push origin branch_name
- To pull changed/updated code from git repository(website) to your local – git pull branch_name