2016-12-13 9 views
1

Githubでは、すべてのコンテンツが新しいフォークレポにコピーされます。元のレポでコミットが発生したかどうかを知りたい場合は、フォークでそのことを実行することもできます。もしそうなら、どうすればいいのですか?GitHubでフォーク - メインラインがコミットする

また、フォークの名前を変更することはできますか?

+0

「私もフォークで起こることができますか?」メインのレポからフォークまで引き出すことができますか? –

+0

どういう意味ですか?詳しく教えてください。 –

+0

新しいコミットを手動でチェックするだけです。いずれにしても、マージの競合が発生した場合は、とにかく手動で処理する必要があります。 –

答えて

0

original/repoをダウンロードできます。次に、個人アカウントにnew/repo(ダウンロードしたファイルを含む)を希望通りにdifferent nameで作成します。次にnew/repoに行きます。

$ git remote add upstream <original/repo/url> 
$ git fetch upstream 

$ git diff HEAD..upstream/master  # compare between HEAD and origin-repo-master if any change occurs 

# you can also pull original-repo-master-branch in another branch here and see the commit lists 
$ git checkout -b <test-branch> 
$ git pull upstream master   # pull upstream(original repo) master into local `test-branch` 

$ git log        # see the commit lists 

# You can take an original-repo-commit by `cherry-pick` manually. Copy the `commit-hash` from `git log` 

$ git checkout master 
$ git cherry-pick <commit-sha>  # take the original-repo-commit manually 
関連する問題