Gromacs

Sample git commands

    Table of contents
    No headers

    For those of us accustomed to CVS here are some simple commands that will get you going with git. An important conceptual difference between git and cvs is that cvs has one central repository while in git all repositories are equal. Git does remember where your files come from though, this makes it simpler to perform further actions. Resolving conflicts is somewhat more involved than with cvs, see the separate page on that.

    Command Effect
    git clone git@git.gromacs.org:gromacs.git
    Check out a new gromacs tree: for developers only
    git clone git://git.gromacs.org/gromacs.git
    Check out a new gromacs tree: for anonymous users only
    git add file Adds a new file to the local repository
    git commit file Commits a new file to the local repository
    git commit -a Commit all files to the local repository
    git push Upload a tree to the original repository
    git pull Download a tree from the original repository
    Page last modified 14:05, 17 Mar 2010 by rossen