Wiki

Clone wiki

lifev-release / migration

Go back


Migration to Bitbucket tips

Change of remotes

In order to change Git remote of your local installation of LifeV from cmcsforge to Bitbucket do the following (as an example we consider the lifev-cmcs repo):

  1. Check your local remote:

    $ git remote -v
    origin git@cmcsforge.epfl.ch:/lifev-cmcs (fetch)
    origin git@cmcsforge.epfl.ch:/lifev-cmcs (push)

  2. Create a copy of your current remote:

    $ git remote add cmcsforge git@cmcsforge.epfl.ch:/lifev-cmcs
    
  3. Add the new remote, by changing the url of origin:

    $ git remote set-url origin git@bitbucket.org:lifev-dev/lifev-cmcs
    
  4. Fetch from the new remote:

    $ git fetch -p
    
  5. Commit everything you work on to the new repository (having taken yourbranch as an example branch to push on the new remote):

    $ git checkout yourbranch
    $ git push origin yourbranch

  6. Continue to work as usual. Now all pushes to origin will point to the new Bitbucket repository.

Updated