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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:03:26+00:00 2026-05-14T18:03:26+00:00

Here’s my setup… Laptop (Mac) – git clone of svn repository Thumb drive –

  • 0

Here’s my setup…

Laptop (Mac) – git clone of svn repository

Thumb drive – git clone of laptop git repository

Server (Win Server 08) – git clone of thumb drive repository

I’m having trouble keeping them in sync for some reason…

If I make a change on the server, I’ll do a “git pull ” on the thumb drive to get the changes. Take the thumb drive to the laptop and do “git pull ” on the laptop. From there, I can do “git svn dcommit” and everything goes up to the SVN repo with no problem.

If I pull changes from SVN with “git svn rebase” and then do a pull onto the thumb drive and do a “git status” it says that I’m ## revisions ahead of the master/origin and I can’t figure out why.

Server

>git remote show
origin 

>git remote show origin
* remote origin
  Fetch URL: E:/proj
  Push  URL: E:/proj
  HEAD branch: master
  Remote branch:
   master tracked
  Local ref configured for 'git push':
   master pushes to master (local out of date)

Laptop

>git remote show
(nothing)

>git remote show origin
fatal: 'origin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly

Thumb-drive

>git remote show
origin

>git remote show origin
* remote origin
  Fetch URL: /Users/me/ui/proj
  Push  URL: /Users/me/ui/proj
  HEAD branch: (unknown)
  Remote branch:
   master tracked
  Local branch configured for 'git pull':
   master merges with remote master
  Local ref configured for 'git push':
   master pushes to master (up to date)
  • 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-05-14T18:03:26+00:00Added an answer on May 14, 2026 at 6:03 pm

    Git commands like pull don’t really work with rebases.

    Let’s say that on your laptop, you have some commits that aren’t in svn yet, and thumb drive is in sync. Something like this:

    laptop:
    svn1 -- svn2 -- A -- B -- C -- D
    
    thumb drive:
    svn1 -- svn2 -- A -- B -- C -- D
    

    Then, you do git svn rebase to get new stuff from svn. This works in two steps:

    laptop (after fetching from svn)
    svn1 -- svn2 -- svn3 -- svn4
              \
               + A -- B -- C -- D
    

    Now we have to put your git work on top of new svn commits, so we still have non-branched history. This is the rebase part:

    laptop (after git svn rebase)
    svn1 -- svn2 -- svn3 -- svn4 -- A' -- B' -- C' -- D'
    

    Now, if there are no conflicts, commit A’ contains the same changes as old commit A, the only different thing is its ancestor: svn4 instead of svn2. Since history is a part of every commit in git, for git A and A’ are different commits.

    So after you do git pull from laptop repo to the thumb drive repo, git does what is natural to it, which is merge new changes:

    thumb drive (after git pull)
    svn1 -- svn2 -- svn3 -- svn4 -- A' -- B' -- C' -- D'
              \                                         \
               + A -- B -- C -- D -------------------- merged result
    

    This makes complete sense in git, since it allows it to track all the changes in a non-linear environment, and note who did the merges and how. However, you won’t be able to commit this kind of history to svn.

    If you force-pushed the changes to your thumb repo, you’d end up with something like this:

    thumb drive (after forced push)
    svn1 -- svn2 -- svn3 -- svn4 -- A' -- B' -- C' -- D'
    

    which is completely fine if you haven’t done any changes on thumb drive repo. If you did, this would overwrite them. To keep thumb-drive changes, you’d have to do one more git rebase there.

    I’d say that to make use of full comfort of git, you’d have to give up the ability to commit your work to svn. There’s no easy way to have distributed version control and linear histories at the same time.

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

Sidebar

Related Questions

Here's a Clone() implementation for my class: MyClass^ Clone(){ return gcnew MyClass(this->member1, this->member2); }
Here's the basic setup: I have a thin bar at the top of a
here is my configuration: http://domain.com (obviously fictitious name...) hosted on a server running Apache
Here's an interesting problem. On a recently installed Server 2008 64bit I opened IE
Here's my proposed (very simplified to illustrate the problem space) design for a C#
Here the total height of all <div> 's are 900 pixels, but the jQuery
Here is a complete example. I want to forbid using A::set from objects casted
Here's the deal: I'm in the process of planning a mid-sized business application that
Here's what I want to do: Given a table PeopleOutfit (id int primary key,
Here's the method. I want to know if I am violating any best practices

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.