yuuka_maniaの日記: github 本家追従 2
日記 by
yuuka_mania
remote add するだけで、本家のブランチができるのか。
以下個人的なメモ。
% git remote add upstream git://github.com/foobar/baz.git. # 本家レポジトリを upstream という名前で登録する
% git fetch upstream # 前述で登録した `upstream'(という名前の本家レポジトリ) のレポジトリをローカルに持ってくる
% git merge upstream/master # 自分のブランチに upstream/master (本家の master ブランチ) をマージする
リポジトリURLはhttpsがおすすめ (スコア:0)
GitHubにおいてgit:// URLのGitプロトコルでの提供は廃止予定と発表されています。なので、認証不要の読み取りアクセスは今後https:// URLに変えていくのがいいと思います。
https://github.blog/2021-09-01-improving-git-protocol-security-github/ [github.blog]
Re:リポジトリURLはhttpsがおすすめ (スコア:1)
参考になりました。ありがとうございます。
gayazone