git checkout my_branch # move on your branch (make sure it exists)
git fetch origin # fetch all changes
git pull origin master # pull changes from the origin remote, master branch and merge them into my_branch
git push origin my_branch # push my_branch
git pull origin
to pull project from github to your local machine :
1-create a repo on github
2-open the repo and go to repo code , click on the green button "Code"
3-copy the link "SSH" or "HTTPS"
4-go to your command line app on your machine
5-run this command : git clone (Link from step 3)
6-press Enter and you will have your project locally
<!--->
if you alrady did that and you just want to pull the changes from your github
just open your command line app and go to the project path or directory
then : git pull origin main || git pull origin " any branch Name"
this will pull all changes that you don't have them locally