LoginSignup
0
0

More than 1 year has passed since last update.

Git .gitignoreファイルを作ってGit管理しないファイルを登録する

Posted at

目的

  • .gitignoreファイルを作成してGit管理しないファイルを登録する方法を簡単にまとめる

方法

  1. ローカルリポジトリ内で下記コマンドを実行して.gitignoreファイルを作成する。

    $ vi .gitignore
    
  2. 今回は拡張子が「html」「png」「jpeg」「pdf」のものをGit管理しないように登録する。開いた.gitignoreファイルに下記のように記載する。

    *.html
    *.png
    *.jpeg
    *.pdf
    
  3. 設定した拡張子のファイルがGit管理から除外される。.gitignoreファイル自体はGit登録してしまって良い。

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