Giter Club home page Giter Club logo

sublime-gitignore's Introduction

Sublime Text 2 and 3 Gitignore plug-in

Sublime Text 2 and 3 plug-in for fetching gitignore boilerplates from the collection of gitignore boilerplates by Github

How it works

Press Cmd + Shift + P for Mac and Ctrl + Shift + P for Linux/Windows
Write Gitignore and select Gitignore: new gitignore

Then select the desired gitignore boilerplate.

Now select another boilerplate. When you are done, select Done.

Save the newly open file as something.gitignore and your done!

Installation

Install via package control

Or

Linux

git clone https://github.com/theadamlt/Sublime-Gitignore ~/.config/sublime-text-2/Packages/Gitignore

Windows

git clone https://github.com/theadamlt/Sublime-Gitignore %APPDATA%/Sublime\ Text\ 2/Packages/Gitignore

Mac

git clone https://github.com/theadamlt/Sublime-Gitignore ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/Gitignore

The plugin is inspired by gibo so thanks to Simon Whitaker.

sublime-gitignore's People

Contributors

alfredbez avatar dbeckwith avatar kevinxucs avatar theadamlt avatar thomas-lebeau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sublime-gitignore's Issues

Getting "Changes not staged for commit" after cloning project

I'm getting strange "Changes not staged for commit" after cloning the project on OS X. Do you have any idea why is this happening?

$ git clone https://github.com/kevinxucs/Sublime-Gitignore.git
Cloning into 'Sublime-Gitignore'...
remote: Counting objects: 515, done.
remote: Total 515 (delta 0), reused 0 (delta 0), pack-reused 515
Receiving objects: 100% (515/515), 102.14 KiB | 48.00 KiB/s, done.
Resolving deltas: 100% (143/143), done.
$ cd Sublime-Gitignore/
$ git status 
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    modified:   boilerplates/Nanoc.gitignore
    modified:   boilerplates/OpenCart.gitignore
    modified:   boilerplates/SASS.gitignore
    modified:   boilerplates/WordPress.gitignore

no changes added to commit (use "git add" and/or "git commit -a")
$ git diff HEAD
diff --git a/boilerplates/Nanoc.gitignore b/boilerplates/Nanoc.gitignore
index 6f35daa..abc2182 100644
--- a/boilerplates/Nanoc.gitignore
+++ b/boilerplates/Nanoc.gitignore
@@ -1,10 +1,10 @@
-# For projects using Nanoc (http://nanoc.ws/)
diff --git a/boilerplates/Nanoc.gitignore b/boilerplates/Nanoc.gitignore
index 6f35daa..abc2182 100644
--- a/boilerplates/Nanoc.gitignore
+++ b/boilerplates/Nanoc.gitignore
@@ -1,10 +1,10 @@
-# For projects using Nanoc (http://nanoc.ws/)
+# For projects using nanoc (http://nanoc.ws/)
 
-# Default location for output (needs to match output_dir's value found in nanoc.yaml)
+# Default location for output, needs to match output_dir's value found in config.yaml
 output/
 
 # Temporary file directory
-tmp/nanoc/
+tmp/
 
 # Crash Log
 crash.log
diff --git a/boilerplates/OpenCart.gitignore b/boilerplates/OpenCart.gitignore
index 97be41f..cc93767 100644
--- a/boilerplates/OpenCart.gitignore
+++ b/boilerplates/OpenCart.gitignore
@@ -9,12 +9,3 @@ image/data/
 image/cache/
 system/cache/
 system/logs/
-
-system/storage/
-
-# vQmod log files
-vqmod/logs/*
-# vQmod cache files
-vqmod/vqcache/*
-vqmod/checked.cache
-vqmod/mods.cache
diff --git a/boilerplates/SASS.gitignore b/boilerplates/SASS.gitignore
index 0f1905d..486b32c 100644
--- a/boilerplates/SASS.gitignore
+++ b/boilerplates/SASS.gitignore
@@ -1,2 +1,2 @@
-.sass-cache
+.sass-cache/
 *.css.map
diff --git a/boilerplates/WordPress.gitignore b/boilerplates/WordPress.gitignore
index 3b181ec..052e56a 100644
--- a/boilerplates/WordPress.gitignore
+++ b/boilerplates/WordPress.gitignore
@@ -1,4 +1,7 @@
 *.log
+.htaccess
+sitemap.xml
+sitemap.xml.gz
 wp-config.php
 wp-content/advanced-cache.php
 wp-content/backup-db/
@@ -7,13 +10,4 @@ wp-content/blogs.dir/
 wp-content/cache/
 wp-content/upgrade/
 wp-content/uploads/
-wp-content/mu-plugins/
 wp-content/wp-cache-config.php
-wp-content/plugins/hello.php
-
-/.htaccess
-/license.txt
-/readme.html
-/sitemap.xml
-/sitemap.xml.gz
-

Using submodule

Couldn't you use git submodule for boilerplates, so it becomes easier to update it?

And isn't there any method to automatically update it? Perhaps a simple script can check boilerplates repo periodically. ๐Ÿค”

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.