Git force complete sync to master
Posted
by Jesse
on Stack Overflow
See other posts from Stack Overflow
or by Jesse
Published on 2010-05-25T15:34:51Z
Indexed on
2010/05/25
15:51 UTC
Read the original article
Hit count: 327
My workplace uses Subversion for source control so I have been playing around with git-svn for the advantages of my own branches, commit as often as I want without touching the main repo, etc.
Since my git svn checkout is local, I have cloned it to a network share as well to act as a backup. My thinking is that if my desktop takes a dump I will at least have the repo on the network share to get changes that I have not had a chance to dcommit yet.
My workflow is to work from the desktop, make changes, commit, etc. At the end of the day I want to update the repo on the network share with all of my current changes. I had setup the repo on the network share using git clone repo_on_my_desktop
and then updating the repo on the network share with git pull origin master
. The problem that I am running into is when I used do a git rebase
to squish multiple commits prior to dcommitting to the main svn repository. When I do this, I get merge conflicts on the repo on the network share when I try to backup at night.
Is there a way to simply sync entirely with the repository on my desktop without doing a new git clone
each night?
© Stack Overflow or respective owner