GitHub同期Forkのオープンソースコード

487 ワード

最近Forkはとても良いC++実現のアルゴリズムセット(https://github.com/xtaci/algorithms)、オープンソースコードとの同期方法についても問題が発生します.同期方法は次のとおりです.
1まず、自分のGitHubでこのオープンソースコードをForkし、それからCloneをローカルに
git clone https://github.com/lanbing510/algorithms.git

2同期が必要な場合は、次のコマンドを実行します.
#            ,   algorithms
git remote add algorithms https://github.com/xtaci/algorithms
#              
git pull algorithms master  
#push        
git push

更新の完了