Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 102793
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:01:18+00:00 2026-05-11T01:01:18+00:00

I have a repository which I have already cloned from Subversion. I’ve been doing

  • 0

I have a repository which I have already cloned from Subversion. I’ve been doing some work in this repository in its Git form and I would hate to lose that structure by cloning again.

However, when I originally cloned the repository, I failed to correctly specify the svn.authors property (or a semantically-similar option).

Is there any way I can specify the SVN author mappings now that the repository is fully Git-ified?

Preferably, I would like to correct all of the old commit authors to represent the Git author rather than the raw SVN username.

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:01:18+00:00Added an answer on May 11, 2026 at 1:01 am

    Start out by seeing what you’ve got to clean up:

    git shortlog -s 

    For each one of those names, create an entry in a script that looks like this (assuming you want all the authors and committers to be the same):

    #!/bin/sh  git filter-branch --env-filter '  n=$GIT_AUTHOR_NAME m=$GIT_AUTHOR_EMAIL  case ${GIT_AUTHOR_NAME} in         user1) n='User One' ; m='user1@example.com' ;;         'User Two') n='User Two' ; m='user2@example.com' ;; esac  export GIT_AUTHOR_NAME='$n' export GIT_AUTHOR_EMAIL='$m' export GIT_COMMITTER_NAME='$n' export GIT_COMMITTER_EMAIL='$m' ' 

    That’s basically the script I used for a large rewrite recently that was very much as you described (except I had large numbers of authors).

    edit Use π pointed out a quoting problem in my script. Thanks!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a git repository which contains source for a few related Java WARs
I have a Git repository which I have started to develop on master branch
I have repository on GitHub to which I commit regularly from my local computer.
I have just one cs file in my repository which Git seems to think
I have a Linq-To-Sql based repository class which I have been successfully using. I
I already have a local workig space repository in /applications/mamp/htdocs/myproject/.git and i can't figure
I guess this question that would have already been asked here. I searched but
I have a git repository with multiple branches. How can I know which branches
I have a git repository that is just a directory tree (/myprogram/src/com/mycompany/test) with some
I have a repository class which is querying the EF DbContext like this: public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.