Last-modified: 2011-12-26 (月) 01:24:43
Git/次のgit commitでコミットするファイルを追加・削除したい

概要

Git管理下にファイルを追加・削除する方法です。

追加

Everything is expanded.Everything is shortened.
  1
  2
  3
  4
  5
  6
  7
  8
-
!
 
-
!
 
-
!
# 全てのファイルを追加
git add .
 
# 特定のファイルを追加
git add [ファイル名]
 
# バージョン管理している全てのファイルを追加
git add -u

削除

Everything is expanded.Everything is shortened.
  1
  2
-
!
# 特定のファイルを削除
git rm [ファイル名]

検証時の環境