Skip to content

Instantly share code, notes, and snippets.

@dmitryd
Created August 11, 2019 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmitryd/ab52b51cc0f71a154580ecb6419d3f64 to your computer and use it in GitHub Desktop.
Save dmitryd/ab52b51cc0f71a154580ecb6419d3f64 to your computer and use it in GitHub Desktop.
Replace git email in all subdirectories
#!/usr/bin/env bash
for f in `grep -Rl --include=config 'my.email@example.com' .` ; do sed -i 's/my.email@example.com/my.new.email@example.com/' "$f" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment