git clone https://github.com/alberteinstein/MyProject.git
git add
, git commit
as before.git push -u origin master
-u
flag is short for –set-upstream
and you only need to do it once. This allows you to run git pull
without specifying the branch name each time.git remote add origin https://github.com/alberteinstein/MyProject.git
git push origin master
git clone https://github.com/alberteinstein/TheProject.git
git add
, git commit
as before.git push -u origin master
git remote add upstream https://github.com/theteam/TheProject.git
git fetch upstream git checkout master git merge upstream/master
git push origin master