项目作者: KnightDanila

项目描述 :
.gitignore Cheatsheet :hacker:
高级语言: HTML
项目地址: git://github.com/KnightDanila/gitignore-cheatsheet.git
创建时间: 2018-08-23T13:26:04Z
项目社区:https://github.com/KnightDanila/gitignore-cheatsheet

开源协议:

下载


gitignore-cheatsheet

.gitignore Cheatsheet

1) Create .gitignore file in project folder

2) Add command to git:
git add .gitignore

Examples

Ignore all files and subfolders [https://stackoverflow.com/a/5581995]

  1. # Ignore all files. But .gitignore file is not ignore
  2. /*
  3. !.gitignore

Ignore all pictures in folder. But ZZZEmpty.png is not ignore

  1. # Ignore all pictures in folder. But ZZZEmpty.png is not ignore
  2. /js/characters/img/*
  3. !/js/characters/img/ZZZEmpty.png

Markdown-Cheatsheet

[https://github.com/KnightDanila/markdown-cheatsheet/]

https://www.jamescoyle.net/how-to/1094-ignoring-files-in-git-with-gitignore
https://github.com/github/gitignore