linux:git

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:git [2023/07/20 13:28] – [リモートブランチの最新に合わせる] ともやんlinux:git [2023/09/01 13:18] (現在) – [参考文献] ともやん
行 151: 行 151:
  
 ===== リモートリポジトリ ===== ===== リモートリポジトリ =====
 +
 +==== ローカルリポジトリのリモート URL を表示/変更 ====
 +クローンしたローカルリポジトリのリモート URL を表示する...🤔\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 +<b class=GRN>$</b> <b class=HIY>cd</b> jupyter-binder
 <b class=GRN>$</b> <b class=HIY>git</b> remote get-url origin <b class=GRN>$</b> <b class=HIY>git</b> remote get-url origin
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-git@github.com:tomoyan596/jupyter-binder.git+https://github.com/tomoyan596/jupyter-binder.git
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  
 +ローカルリポジトリのリモート URL を SSH の URL に変更する😊\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> <b class=HIY>git</b> remote set-url origin https://github.com/tomoyan596/jupyter-binder.git+<b class=GRN>$</b> <b class=HIY>git</b> remote set-url origin git@github.com:tomoyan596/jupyter-binder.git
 <b class=GRN>$</b> <b class=HIY>git</b> remote get-url origin <b class=GRN>$</b> <b class=HIY>git</b> remote get-url origin
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-https://github.com/tomoyan596/jupyter-binder.git+git@github.com:tomoyan596/jupyter-binder.git
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  
 +ローカルリポジトリのリモート URL を HTTPS の URL に変更する😊\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> <b class=HIY>git</b> remote set-url origin git@github.com:tomoyan596/jupyter-binder.git+<b class=GRN>$</b> <b class=HIY>git</b> remote set-url origin https://github.com/tomoyan596/jupyter-binder.git
 <b class=GRN>$</b> <b class=HIY>git</b> remote get-url origin <b class=GRN>$</b> <b class=HIY>git</b> remote get-url origin
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-git@github.com:tomoyan596/jupyter-binder.git+https://github.com/tomoyan596/jupyter-binder.git
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
- 
  
 ===== リモートブランチの最新に合わせる ===== ===== リモートブランチの最新に合わせる =====
行 470: 行 475:
 [[https://www.nekotricolor.com/entry/practice-of-bare-and-non-bare-repository-manage-wordpress-themes-with-git|ベアリポジトリとノンベアリポジトリ:実践編〜GitでWordPressのテーマを管理 - トリコロールな猫]]\\ [[https://www.nekotricolor.com/entry/practice-of-bare-and-non-bare-repository-manage-wordpress-themes-with-git|ベアリポジトリとノンベアリポジトリ:実践編〜GitでWordPressのテーマを管理 - トリコロールな猫]]\\
 [[https://atmarkit.itmedia.co.jp/ait/articles/1701/24/news141.html|これでもう怖くない、Git/GitHubにおけるリモートリポジトリの作成、確認、変更、更新時の基本5コマンド]]\\ [[https://atmarkit.itmedia.co.jp/ait/articles/1701/24/news141.html|これでもう怖くない、Git/GitHubにおけるリモートリポジトリの作成、確認、変更、更新時の基本5コマンド]]\\
 +[[zn>kazuwombat/articles/eced2915b6adff|git reset —hardしてしまった時に元に戻す方法]]\\
  
 ==== 付録 ==== ==== 付録 ====
  • linux/git.1689827280.txt.gz
  • 最終更新: 2023/07/20 13:28
  • by ともやん