Basically you wil be using these set of commands:
• Go to the repository and copy it's link from "Add Code" section.
• Go to the folder where you want to create the local copy and open git bash by right clicking.
• Write command -> git clone <url you copied>
• Now you'll be having your repo in your folder get inside the same.
• Now you can either create a branch to separately add your code or you can commit your code their itself.
• Most probably you'll be creating branch.
• For creating branch get inside the repository which got cloned and then open git bash.
• Write command -> git checkout -b "Branch Name"
• Now you write your changes and commit it their in your branch
• For commiting the changes you must make sure that you are on the branch where you want the changes to be committed by you.
° If not on branch, type -> git checkout <branch name>
• Now at first send your changes to the staging area so as to be committed by typing -> git add .
• Now commit using -> git commit -m "Some message"
• Now before pushing your changes make sure you are having the latest pull from the base/master branch. For doing the same go to branch base/master by typing -> git checkout <master>
• Get all latest changes -> git pull
• Now again switch back to your branch by typing git checkout <your branch >
• Now merge your code with the master branch so as to take the latest changes on your branch by typing -> git merge master
• If there exists any merge conflict rectify it by opening your editor and making the necessary changes and then again add and commit it by following the above commiting steps.
• Finally push the changes you did by typing ->
git push origin <branch where you want to merge>
• That's it done.
• Hope you liked it :)