科学の箱

科学・IT・登山の話題

IT

git -commitする前に確認すること

投稿日:

git -commitにより変更はステージングエリアからリポジトリに登録される。この時点で履歴を追うことができる変更として取り扱われる。pull-requestが承認されればgithubにも登録される可能性があるのだから、commitは慎重に実行すべきである。

commitする前には次の手順で確認する。

これまでのコミットログを確認する

git log

ワークツリーとステージングエリアの変更点を確認する

git diff

ステージングエリアに追加する

git add .

ステージエリアとブランチの最新コミットを比較する。

git diff HEAD

コミットする

git commit

コミットログを確認する

git log

メタ情報

inarticle



メタ情報

inarticle



-IT
-

執筆者:


comment

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

関連記事

no image

Chefでhelloを実行してみる。

前提 Rubyがインストールされている VagrantがインストールされていてVirtualboxが起動している Chef, Knifeがインストールされている 手順 knifeコマンドを使ってcoo …

no image

10 thing you know about UPS

http://www.techrepublic.com/article/10-things-you-should-know-about-deploying-a-ups/ Related posts:O …

no image

muninのデバッグ

muninで正しくデータが取得できない時にはmuninサーバーへ直接telnetでつなぎ確認作業をする。 # telnet localhost 4949 Trying ::1… telnet: c …

no image

Alcatel Omniswitchでインタフェースを操作するコマンド

確認コマンド show interfaces status > show interfaces status DETECTED           CONFIGURED Slot/ AutoNe …

no image

slickrunの日本語環境用magicword

jpdefault Related posts:fingで監視をするcmderであらかじめ設定しておくと便利な項目gitの使い方

2014年8月
« 7月   9月 »
 123
45678910
11121314151617
18192021222324
25262728293031

side bar top



アーカイブ

カテゴリー