既存ファイルを変更して、コミット

概要

既存のファイルを変更して、コミットを行う


手順

既存ファイルを開く

変更する

「git add testdata.txt」でリポジトリに変更を通知

hoge@WKPC-MSHIGE1979 /d/demos/git_repo (master)
$ git add testdata.txt
 
hoge@WKPC-MSHIGE1979 /d/demos/git_repo (master)
$
 

「git commit -m "コメント"」でコミット

hoge@WKPC-MSHIGE1979 /d/demos/git_repo (master)
$ git commit -m "text file add line"
[master 8ef5686] text file add line
 1 file changed, 1 insertion(+)
 
hoge1@WKPC-MSHIGE1979 /d/demos/git_repo (master)
$
 
※git addで新規ファイルも変更ファイルもリポジトリへ通知します。



最終更新:2012年10月27日 06:53