0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

studyMemo_20250415

Posted at

Git、GitHubについて

・Fork

GitHub上でリポジトリを自分用にコピーすることを示す用語。
リポジトリに寄与したい(Pull Requestする)ときや気になるリポジトリを自分用に保管したいときに利用する。
※cloneはローカルリポジトリにコピーを作りたいとき使うコマンド

・git commit コマンドにおける「-am」オプション

sample.bash
git commit -am "コミットメッセージ"

本題に入る前に各パーツの意味を含種を兼ねて記載します。
「git」…ツール名を表す「親コマンド」
「commit」…ツール内のどの機能かを示す「サブコマンド」
「-am 」…-aオプションと-mオプションを兼ねた「オプション」
「"コミットメッセージ"」…-mオプションに対する「メッセージ」

-aオプションと-mオプションとは
「-aオプション」は追跡済み(一回でもaddされた)のファイルを自動でadd(ステージ)。
「-mオプション」はcommitにつけるメッセージを指定する。

まとめ
上記の「git commit -am "コミットメッセージ"」は「作業中の追跡されたファイルをすべてステージ(add)してコミットメッセージを指定しながらコミットを行う」という意味に当たる。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?