---
title: "Discussion on \"Switch Git identities by folder with includeIf (work vs personal on one machine)\" | Hashnode"
description: "Discussion on \"Switch Git identities by folder with includeIf (work vs personal on one machine)\". If one machine holds both work repositories and personal projects, a single global user.email will eventually put the wrong address on a commit. Git can pick the identity from the folder a repository"
url: "https://hashnode.com/posts/switch-git-identities-by-folder-with-includeif-work-vs-personal-on-one-machine/6ae43afbbdfd11e2ba0e565e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Switch Git identities by folder with includeIf (work vs personal on one machine)](https://corporateipshield.hashnode.dev/switch-git-identities-by-folder-with-includeif-work-vs-personal-on-one-machine?utm_source=hashnode&utm_medium=feed)

If one machine holds both work repositories and personal projects, a single global user.email will eventually put the wrong address on a commit. Git can pick the identity from the folder a repository

Oct 30 · 3 min read · corporateipshield.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#devtools](https://hashnode.com/tag/devtools)

## Written by

[Tidywren](https://hashnode.com/@tidywren)

@tidywren · Remote

  
[View profile](https://hashnode.com/@tidywren)

Practical checklists and configs for engineers with side projects

Practical checklists and configs for engineers with side projects. General information, not legal advice.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
