Tag : tips-and-tricks

Tips and Tricks: Git Check-Ignore

Have you ever found yourself wondering “why in the world is git ignoring this file!?”

Have you spent countless minutes combing over every line of a .gitignore to try to determine what obscure rule is preventing your file from being committed?

Have you ever been so frustrated with git, that you bit your computer?

Have you ever been so frustrated with git, you bit your computer?

I have something that can help! It’s called git check-ignore and it will CHANGE. YOUR. LIFE!¬†(your results may vary)

If you haven’t heard about the git check-ignore command, you’re missing out on an underappreciated git command.

I found myself stuck for about 15 minutes one day, trying to figure out why a file wasn’t showing up in git. After banging my head against a wall for so long, I decided to see if there was a better way. I found an article that pointed me at this little command and I it seemed like it wold do the trick. I navigated to the folder that contained the troublemaking file, Settings.config, and typed git check-ignore -v Settings.config and it gave me:


I was overjoyed! It told me which gitignore file it was in (there were several on the project), what line to look at, and what the rule was.

If you’d like to read up on it further, check out the official docs: https://git-scm.com/docs/git-check-ignore

Sitecore Tips and Tricks: The Gutter

Sitecore’s content editor has a handy feature called the gutter. The gutter shows up on the left hand side of the content editor, and is a great way of showing information about a content item at a glance.

Some handy things it can show you:

  1. Item Buckets
  2. Cloned Items
  3. Personalizations
  4. Multivariant Tests
  5. My Locked Items
  6. Locked Items
  7. Workflow State
  8. Broken Links
  9. Missing Versions
  10. Publishing Warnings
  11. Presentation Overridden

Let’s take a quick look at a gutter:

Example of a gutter

The first gutter icon in this case is indicating that the presentation has been overridden. Hovering over the icon gives a little tool tip indicating this. The second type of gutter icons in the example is indicating that the item is a content bucket. The last icon is indicating that an author has locked an item. You can also interact with some of these icons. For instance, while logged in as an administrator, I can click that lock icon and the item will unlock.

The gutter will only display one icon at a time, however if you hover over it, you’ll see other icons:

More than 1 gutter icon

You can also create your own, custom gutter icons to suit your needs. A coworker of mine wrote a plugin for selecting multiple content items and performing an action on them. Ones that were “selected” were indicated as selected via a gutter icon.

There are plenty of uses for the gutter. I’m interested in hearing yours – leave a comment down below sharing some custom ways you’ve seen the gutter used.

Useful Resources: