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

  • Home
  • SEARCH
  • 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
  • 0 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

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Yes, I believe you do need to match them most… May 11, 2026 at 9:59 am
  • added an answer Some other options could be: As the VWSTYLES.XML is just… May 11, 2026 at 9:59 am
  • added an answer Well, a bit more digging tells me that there's no… May 11, 2026 at 9:58 am

Related Questions

I have a repository which I have already cloned from Subversion. I've been doing
I have a git repository which tracks an svn repository. I cloned it using
I have a Git repository which contains a number of subdirectories. Now I have
I have a repository of files which are unrelated to each other but are
I have a local git repository which tracks a remote SVN repository via git
I have a SVN Repository at my main PC, to which only I have
I have a git repository with multiple branches. How can I know which branches
I have a very large (~6GB) SVN repository, for which I've written a batch
I have an MVC-based site, which is using a Repository/Service pattern for data access.
Suppose I have a set of commits in a repository folder... 123 (250 new

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.