...
Should you want to clone the git repository for OpenIFS, here's how: 1. If you don't have an account on the ECMWF website go to old.ecmwf.int/login and self register. 2. Once you have a userid, you need to set the password on the website hosting
the repositories. If you don't have one, or have forgotten, simplest way of doing this is to go
to the page: https://software.ecmwf.int/issues and click on 'Can't access your account?'. This will forward an email to you with a web address
to reset (or create) the password. 3. Once the password is set, test it by logging in to the https://software.ecmwf.int/stash. You should see the OpenIFS
project listed. 4. To clone on your workstation is then easy: mkdir ecmwf cd ecmwf git clone https://software.ecmwf.int/stash/scm/oifs/openifs.git which will prompt for username & password. Then you'll get a complete clone of the repository.
You can then create branches and push them back to me if you want to!
Configure Git for the first time
git config --global user.name "Glenn Carver"
git config --global user.email "Glenn.Carver@ecmwf.int"
Working with your repository
I just want to clone this repository
If you want to simply clone this empty repository then run this command in your terminal.
git clone ssh://git@software.ecmwf.int:7999/oifs/contrib.git
My code is ready to be pushed
If you already have code ready to be pushed to this repository then run this in your terminal.
cd existing-project
git init
git add --all
git commit -m "Initial Commit"
git remote add origin ssh://git@software.ecmwf.int:7999/oifs/contrib.git
git push origin master
My code is already tracked by Git
If your code is already tracked by Git then set this repository as your "origin" to push to.
cd existing-project
git remote set-url origin ssh://git@software.ecmwf.int:7999/oifs/contrib.git
git push origin master
Useful links
git workflows discussion: http://www.atlassian.com/git/workflows#!workflow-centralized