Documentation for PISM, the Parallel Ice Sheet Model

Using Git to contribute to PISM

Here are the steps you need to make

  • Install Git
    • apt-get install git on Ubuntu 11.04 (package name is git-core in earlier)
    • port install git-core on Mac OS X with MacPorts
  • Install a GUI for git (for example gitg, git-cola or tig on Linux,
  git clone git@github.com:pism/pism.git pism-dev

Editing code and committing changes

The work-flow when using Subversion usually looks like

  # edit some code in existing files, add foo.cc
  svn add foo.cc
  svn commit -m "Fixed a bug and added foo.cc."

When using git, you

  # edit some code in existing files, add foo.cc
  git add foo.cc
  git commit -a -m "Fixed a bug and added foo.cc."
  git push
moving_to_github.txt · Last modified: 2017/02/21 21:35 by Constantine Khroulev
© 2016 by PISM | webmaster