It's project worked for internship on UbiG, used for back office mananging content-approval wordpress plugin
-
Fork the project from https://github.com/RezaPahleviBahruddin/content-approval
-
Clone the project to your local environment by using these commands:
git clone https://github.com/{YOUR_USERNAME}/content-approval
git remote add upstream https://github.com/RezaPahleviBahruddin/content-approval
Now run
git remote -v
and you will see there are two remotes:- origin
- upstream
Upstream is the main repository while origin is what you have forked from the main. After you made changes to your local repository, you need to push it to origin. Afterwards, if you want your changes affect the main repository, then, create a pull request.
Lets say that we edit the readme.md file. Then, we need to push it to the server.
At first, don't forget to fetch the main project.
git fetch upstream
check the status (what have you been doing)
git status
add the files you have changed to the next commit
git add .
make the commit and give it a message
git commit -m "THis is your message"
push it to your repository
git push origin master
after that, open your github. Then, crate a pull request