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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:59:43+00:00 2026-05-10T21:59:43+00:00

I’m a Git newbie. I recently moved a Rails project from Subversion to Git.

  • 0

I’m a Git newbie. I recently moved a Rails project from Subversion to Git. I followed the tutorial here: http://www.simplisticcomplexity.com/2008/03/05/cleanly-migrate-your-subversion-repository-to-a-git-repository/

I am also using unfuddle.com to store my code. I make changes on my Mac laptop on the train to/from work and then push them to unfuddle when I have a network connection using the following command:

git push unfuddle master 

I use Capistrano for deployments and pull code from the unfuddle repository using the master branch.

Lately I’ve noticed the following message when I run ‘git status’ on my laptop:

# On branch master # Your branch is ahead of 'origin/master' by 11 commits. # nothing to commit (working directory clean) 

And I’m confused as to why. I thought my laptop was the origin… but don’t know if either the fact that I originally pulled from Subversion or push to Unfuddle is what’s causing the message to show up. How can I:

  1. Find out where Git thinks ‘origin/master’ is?
  2. If it’s somewhere else, how do I turn my laptop into the ‘origin/master’?
  3. Get this message to go away. It makes me think Git is unhappy about something.

My mac is running Git version 1.6.0.1.


When I run git remote show origin as suggested by dbr, I get the following:

~/Projects/GeekFor/geekfor 10:47 AM $ git remote show origin fatal: '/Users/brian/Projects/GeekFor/gf/.git': unable to chdir or not a git archive fatal: The remote end hung up unexpectedly 

When I run git remote -v as suggested by Aristotle Pagaltzis, I get the following:

~/Projects/GeekFor/geekfor 10:33 AM $ git remote -v origin  /Users/brian/Projects/GeekFor/gf/.git unfuddle    git@spilth.unfuddle.com:spilth/geekfor.git 

Now, interestingly, I’m working on my project in the geekfor directory but it says my origin is my local machine in the gf directory. I believe gf was the temporary directory I used when converting my project from Subversion to Git and probably where I pushed to unfuddle from. Then I believe I checked out a fresh copy from unfuddle to the geekfor directory.

So it looks like I should follow dbr’s advice and do:

git remote rm origin git remote add origin git@spilth.unfuddle.com:spilth/geekfor.git 
  • 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-10T21:59:44+00:00Added an answer on May 10, 2026 at 9:59 pm

    1. Find out where Git thinks ‘origin/master’ is using git-remote

    git remote show origin 

    ..which will return something like..

    * remote origin   URL: me@remote.example.com:~/something.git   Remote branch merged with 'git pull' while on branch master     master   Tracked remote branch     master 

    A remote is basically a link to a remote repository. When you do..

    git remote add unfuddle me@unfuddle.com/myrepo.git git push unfuddle 

    ..git will push changes to that address you added. It’s like a bookmark, for remote repositories.

    When you run git status, it checks if the remote is missing commits (compared to your local repository), and if so, by how many commits. If you push all your changes to ‘origin’, both will be in sync, so you wont get that message.

    2. If it’s somewhere else, how do I turn my laptop into the ‘origin/master’?

    There is no point in doing this. Say ‘origin’ is renamed to ‘laptop’ – you never want to do git push laptop from your laptop.

    If you want to remove the origin remote, you do..

    git remote rm origin 

    This wont delete anything (in terms of file-content/revisions-history). This will stop the ‘your branch is ahead by..’ message, as it will no longer compare your repository with the remote (because it’s gone!)

    One thing to remember is that there is nothing special about origin, it’s just a default name git uses.

    Git does use origin by default when you do things like git push or git pull. So, if you have a remote you use a lot (Unfuddle, in your case), I would recommend adding unfuddle as ‘origin’:

    git remote rm origin git remote add origin git@subdomain.unfuddle.com:subdomain/abbreviation.git 

    or do the above in one command using set-url:

    git remote set-url origin git@subdomain.unfuddle.com:subdomain/abbreviation.git 

    Then you can simply do git push or git pull to update, instead of git push unfuddle master

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

Sidebar

Ask A Question

Stats

  • Questions 94k
  • Answers 94k
  • 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
  • Editorial Team
    Editorial Team added an answer I've worked in 2 game companies, seen a number of… May 11, 2026 at 6:46 pm
  • Editorial Team
    Editorial Team added an answer I would expect the unexpected when rendering on top of… May 11, 2026 at 6:46 pm
  • Editorial Team
    Editorial Team added an answer I'd suggest checking out what's doing the work for those… May 11, 2026 at 6:46 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

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.