github:入門

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
github:入門 [2021/08/25 00:18] – [Reference] babagithub:入門 [2021/08/27 00:00] – [他人のリポジトリにPull Requestを送る] baba
行 90: 行 90:
 </html> </html>
  
 +^ コマンド              ^ 説明                                                                                    ^
 +| git reset README.md   | README.msを一旦 git add してしまった後に「やっぱりやめた」というときに使うコマンドです  |
 +| git reset -hard HEAD  | ファイルの編集を始めたけど一旦最初の状態に戻したいときはこのコマンド                    |
 ===== Pull Request ===== ===== Pull Request =====
 Pull Requestには大きく分けて Pull Requestには大きく分けて
行 108: 行 111:
 <div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/d9ad15d486a74b92b05e1fe394374c1a" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div> <div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/d9ad15d486a74b92b05e1fe394374c1a" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>
 </html> </html>
-===== 他人のリポジトリにPull Requestを送る =====+==== 他人のリポジトリにPull Requestを送る ====
 このやり方はこれまでの内容とほぼ同じです.唯一違う点は,git cloneから始めるのではなく,対象となるリポジトリをforkすることから始めます.先程のチーム開発と比べて, このやり方はこれまでの内容とほぼ同じです.唯一違う点は,git cloneから始めるのではなく,対象となるリポジトリをforkすることから始めます.先程のチーム開発と比べて,
   - PRを送りたいリポジトリをforkする(ブラウザから行う)   - PRを送りたいリポジトリをforkする(ブラウザから行う)
行 115: 行 118:
   - 変更した内容でforkしたリモートリポジトリにpushする   - 変更した内容でforkしたリモートリポジトリにpushする
   - ブラウザ上のforkしたリモートリポジトリページからpull requestを作成する   - ブラウザ上のforkしたリモートリポジトリページからpull requestを作成する
-という流れになります.+  - 自分のPRをmergeしてもらったら,forkしたリポジトリも本家に合わせてmergeする 
 +という流れになります.ではやってみましょう. 
 + 
 +<html> 
 +<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/0a8146db13144801bc6d722fbbcd558c" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div> 
 +</html> 
 + 
 +この回では特に新しいコマンドはありません
  
 ====== Reference ====== ====== Reference ======
   * gitの入門周りのコマンドだけをまとめたページ:https://qiita.com/ay3/items/8d758ebde41d256a32dc   * gitの入門周りのコマンドだけをまとめたページ:https://qiita.com/ay3/items/8d758ebde41d256a32dc
  
  • /home/users/2/lolipop.jp-4404d470cd64c603/web/ws/data/pages/github/入門.txt
  • 最終更新: 2021/09/14 16:18
  • by baba