How to Use Git Commands
How to Use Git Commands
Git Setup
1. Download Git
For windows:
https://git-scm.com/download/win
For mac:
https://git-scm.com/download/mac
d.Set your name & email address on your machine through gitbash :
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
1. Open GitBash in your respective project where the src folder is available.
2. You must be on your main or master branch, hit below command to make your master up to
date with Github master:
git pull origin master
4. If your changes are as per expected > add them or remove them.
For adding your file, the command is : git add <fileName>
If your changes are not valid and you don’t want to add that file and changes:
git checkout <fileName>
7. Now it’s time to push your file and your local branch:
git push --set-upstream origin <Your Branch name>
11. Now send a pull request URL to your reviewer and request their review.