Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Smudge and Clean filters

Smudge work, Clean is ignored.

In the attributes file


*.cbl filter=Promote

git config --global filter.Promote.smudge "/C/Users/Riaan/.config/git/Promote.smudge"
git config --global filter.Promote.clean "/C/Users/Riaan/.config/git/Promote.clean"



#! /bin/sh -f
sed \
-e 's|/u/files1/|U:\\files1\\|' \
-e 's|"SYSTEM"|"MFSYSTEM"|' \



#! /bin/sh -f
sed \
-e 's|U:\\files1\\|/u/files1/|' \
-e 's|"MFSYSTEM"|"SYSTEM"|' \

(there are more similar lines excluded for simplicity)


Purpose of both filters are mostly changing linux folder structures into windows format "/u/" into "U:\"

Cloning a repository and the smudge filter does execute. Master repository is on linux and my created repository got all the filenames in the windows format. 


Promoting programs back to linux and the trigger is just not executed at all. What else must be set.


Note, I'm running git bash on a Windows 10 PC.




1 answer

1 accepted

0 votes
Answer accepted

Found it eventually.

the paths in the config file is a mix between Windows and Linux format

Must use Windows c:
but Linux forward slashes 

[filter "Promote"]
clean = "C:/Users/Riaan/.config/git/Promote.clean"
smudge = "C:/Users/Riaan/.config/git/Promote.smudge"

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Training & Certification

Atlassian Cloud 101: Start quickly with free training

Free training for Jira, Confluence, and Jira Service Management Start faster and be more productive with Atlassian cloud products. Take the guess work out of where to begin, and gain confidence wi...

80 views 3 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you