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 8569679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:23:34+00:00 2026-06-11T18:23:34+00:00

I rewrote the tree to my git repository to fix errors in the author

  • 0

I rewrote the tree to my git repository to fix errors in the author name and email address. Now I’m trying to push the fixed tree to my repo on Source Forge. CharlesB told me how to update the config file on the Source Forge servers. My config file looks like this:

[codeguru@shell-24003 bbct]$ cat config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = true
        sharedrepository = 2
[receive]
        denyNonFastforwards = false

Now when I try to force a push, I get the following error:

$ git push -f
Password:
Counting objects: 464, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (148/148), done.
Writing objects: 100% (452/452), 470.65 KiB, done.
Total 452 (delta 268), reused 417 (delta 247)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://codeguru@git.code.sf.net/p/bbct/code
 ! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://codeguru@git.code.sf.net/p/bbct/code'

What’s going on here? More importantly, how do I fix it?

Update:

Running git push -f on a public campus computer gives the same error message as above.

Another Update:

I cloned the SF repo to a temporary folder, reset this temporary repo’s master branch to the commit just before the first commit with the wrong author and email, then ran git push -f. I get the exact same error message as with my original repo:

$ git push -f
Password:
Total 0 (delta 0), reused 0 (delta 0)
remote: error: denying non-fast-forward refs/heads/master (you should pull first)
To ssh://codeguru@git.code.sf.net/p/bbct/code
 ! [remote rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'ssh://codeguru@git.code.sf.net/p/bbct/code'

I guess SF really doesn’t want me doing a non-fast-forward commit here 🙁

  • 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. Editorial Team
    Editorial Team
    2026-06-11T18:23:35+00:00Added an answer on June 11, 2026 at 6:23 pm

    Well, this was in fact a SourceForge issue, and perhaps a user error as well. In the SF shell, I originally edited the config file for my project under the /home/scm_git directory. After submitting a ticket to SF, I found out that the correct directory is /home/git instead. After editing the config file in the correct subdirectory for my project, I forced a push and updated the master branch successfully.

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

Sidebar

Related Questions

I migrated my SVN repository successfully with Tags into Git using git svn-clone .
How do I remove commits which have no changeset using git filter-branch? I rewrote
edit: I completely rewrote the question as the original one didn't clearly explain my
So I rewrote my paths to something like: URL/really/nice/paths/ using mod_rewrite rules like this:
I'm running into a bizarre problem with a C++ makefile. I rewrote it this
Apache mod_rewrite: explain me %{HTTP_HOST} expecially when using addon domains Situation (directories tree) on
I got that little function(I changed the name of variables) Private Function everythingLinked(ByRef myClass
REWROTE: SOLVED Hi there, I currently worked on a simple application with a database,
I am having trouble moving from parser grammar to tree grammar, the problem comes
I rewrote entire question to make it clear. I need a type that can

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.