LoginSignup
0
0

More than 1 year has passed since last update.

Gitで管理しないファイルの指定方法

Posted at

・Gitで管理しないファイルの指定方法
作業フォルダ内に「.gitignore」ファイルを作成する。

※使う対象
●自動生成されるファイル
●パスワード等機密事項が含まれているファイル

※「.gitignore」ファイルの記述方法
●コメントアウト
行頭に#
●指定したファイルを除外
ファイル名を記述
例)index.html
  =>これで「index.html」はgitで管理されない
●ルートディレクトリを除外
/root.html
●ディレクトリ以下を除外
dir/
●/以外の文字列を含むファイルを除外
例)「.css」を含むファイルを除外
//.css

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