I have forked a private repository (an iPhone project) as follows:
cd nameofdirectory
git init
git clone forkedURL
Now I want to push the changes done by me to my forked repository so that the main admin can review my written code and merge it with the main repository.
How can I push the changes done by me to my forked repository using terminal on MacOS?
git add myfile.h
git commit -m "your commit message"
git push -u origin master
if you don't remember all the files you need to update, use
git status
To add all file at a time, use git add -A
To check git whole status, use git log
Source: Stackoverflow.com