How can I do a force commit using git-svn? -
i have dev branch i'm working on , want commit it. through unfortunate series of events won't into, git svn thinks date , there nothing commit.
essentially right want clobber remote contents of branch local version of branch. similar git push --force, except git svn. git svn dcommit --force.
i realize there other ways such checking out copy , copy/pasting repo's contents. i'm hoping simple "forcing" solution 1 exists pure git.
"git-svn dcommit" doesn't have --force option or analogue of it. may try smartgit client:
- open git-svn repository smartgit
- select remote->push advanced. check "force" checkbox, press push.
smartgit may ask whether push branch new branch or push existing branch. if select new, smartgit choose svn branch name git branch name (e.g. refs/heads/xxx choose branches/xxx). if select existing, smartgit through current branch history until "git-svn-id:" commit met , push branch url specified there. think second option better case.
Comments
Post a Comment