# Git: check if a folder changed

DevFeed: [Git: check if a folder changed](<https://devfeed.tech/articles/git-check-if-a-folder-changed-37721.md>)

Original publisher: [Read original article](<https://carlosbecker.com/posts/git-changed/>)

Author: Carlos Alexandro Becker

Published: 2019-04-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Carlos Becker](<https://devfeed.tech/sources/carlos-becker.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Script](<https://devfeed.tech/topics/script.md>)

Tags: [branch](<https://devfeed.tech/tags/branch.md>), [changes](<https://devfeed.tech/tags/changes.md>), [deploy](<https://devfeed.tech/tags/deploy.md>), [files](<https://devfeed.tech/tags/files.md>), [git](<https://devfeed.tech/tags/git.md>), [lint](<https://devfeed.tech/tags/lint.md>)

## AI overview

A quick guide to checking whether files in a folder changed between Git revisions, including comparisons with the current branch or a previous tag. The technique can conditionally deploy changed folders or lint changed files.

## Source excerpt

Often I need to "do X only if files on some folder changed" or whatever. I always need to Google that or find it on old scripts...