LoginSignup
14
10

More than 5 years have passed since last update.

.gitignoreファイルの作り方

Last updated at Posted at 2017-02-23

.gitignoreの作り方

  • windowsでは拡張子だけのファイルは作れない。

e58550a3d632e6e4c04ca629b4c14adc[1].png
↑.gitignoreを保存しようとするとエラーが出る。

.gitignoreファイルを作る方法

  1. gitignore.txtを作る。(gitignore.txtは.gitignoreファイルを保存したいフォルダに保存しておく。)
  2. gitignore.txtに.gitignoreに書きたい内容を書く。
  3. gitignore.txtを保存したフォルダ上を、SHIFTを押しながら右クリックして、"コマンドウインドウをここで開く"を選択。 ※Windows10Insider Preview Build 14971以降は"PowerShellをここに開く"になってる。
  4. 黒い画面が開いたら ren gitignore.txt .gitignore と入力してEnter。
14
10
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
14
10