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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T22:09:21+00:00 2026-05-13T22:09:21+00:00

I’ve recently used git svn and enjoyed it very much. Now I’m starting a

  • 0

I’ve recently used git svn and enjoyed it very much. Now I’m starting a new project at a different customer. At that site the SCM of choice is ClearCase. I haven’t found a baked equivalent of git svn for ClearCase. Is there anybody who has tried to use git locally as a front-end to ClearCase using some tricks, configuration or scripting with any measure of success? If so can you please explain the method used?

  • 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-13T22:09:21+00:00Added an answer on May 13, 2026 at 10:09 pm

    Here’s a method that avoids hijacks, which our team used this method quite successfully for over a year, until we retired ClearCase for Subversion (per company policy, although it is a backwards step for our team – we were basically just using ClearCase as a dumb file system, and virtually working natively in git, but now we’re using the git-svn bridge which isn’t as nice as native git.)

    We used two directories, one for the ClearCase snapshot and master git repo, which we shared among the whole team and never edited files in, and one for our “working” directory.

    The preparation in the ClearCase snapshot view is:

    % git init
    % git add **/*.cxx **/*.h **/Makefile (and so on)
    % git commit -m "initial"
    

    Then clone in your working directory:

    % mkdir ~/work
    % git clone /path/to/repo
    

    Work in the working directory, on a branch:

    % git checkout -b feature
    % ...edit/compile...
    % git add -u
    % git commit
    

    Make sure the ClearCase snapshot is up-to-date with pristine (which it always was for us, because we shared it among the team, and we all used git).

    Then merge the branch onto the master by rebasing it, to avoid an automatic merge commit:

    % git checkout master
    % git pull
    % git checkout feature
    % git rebase master
    % git checkout master
    % git merge feature
    % git branch -d feature
    
    % git diff --name-status origin/master
    

    Prepare the ClearCase view by checking out/mkelem/rmname any changed/new/removed files,
    based off the output of git diff --name-status. We used a hand-rolled script to do this. Don’t forget to check out any directories that have added/removed files:

    Then push the git stuff back, and check in with ClearCase:

    % git push
    % cd /path/to/repo
    % git reset --hard
    % cleartool ci `cleartool lsco -r -short -me`
    

    It seems like a lot of commands, but this includes setup, and your daily workflow doesn’t use many commands. You can trivially build a script around the push-back-to-ClearCase step, and discover/show your team all the cool extra git stuff gradually as everyone gets used to the basic workflow.

    The real beauty of this system is, after a while when everyone’s competent with git, you can trivially ditch ClearCase and all the associated individual monkey work and fees. Maybe give the company’s ClearCase guy a much needed holiday and some retraining with the savings. (Sadly at my company the git stuff was all skunkworks, and we’ve moved to Subversion – forwards from ClearCase but backwards from git!)

    I strongly recommend you use the pristine script from ClearCase Globally, Git Locally, which runs in the ClearCase snapshot view and ensures it and git are in sync. We set this up as a cron job that ran twice daily, and also ran it manually whenever we were about to push back to git.
    Unfortunately the link to the blog post is no longer valid. However the script is still available on Github.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

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.