[Git]how to sync master branch of source from my fork branch

I notes for this topic.

#List the current configured remote repository for your fork.

git remote –v  

#add new a remote my-source repository that will be synced with the fork.

git remote add remote-source  https://github.com/apache/kafka.git

git checkout master

#

git pull remote-source master

#push to my fork

git push origin master

 

參考

Syncing a fork

Configuring a remote for a fork