Michel Wortmann & Stefan Liersch
June 19, 2018
swim_final_plus_extra_2010-11-11
(inspired by C. Linstead)
code/
docs/
project/
input/
blank.bsn
blank.str
...
output/
cntab.dat
for *.lut
file # executable with debug flags using gfortran (as before)
make
make swim
# speed-optimised executable using gfortran
make fast
# like fast but with the cluster Intel ifort compiler
make cluster
b3SubFiles
switch in .bsn
file for transitioninput/
Sub/
groundwater.tab
subbasin.tab
routing.tab
docs/
contains a latex project of new developmentscode/
docs/
figures/
CHANGES_SWIM_2015-11.txt
SWIM_new_developments_documentation.pdf
SWIM_new_developments_documentation.tex
GitLab merge requests
Direct push
source/
cat ~/.ssh/*.pub
swim/swim
repositoryCopy/download an existing one
Creating a new (local) repository
git status -h # show current changes and branch
git log --help # browse history
git diff -h # show code changes
git checkout -h # switch branches or restore files
gitk & # visual log browser
-h
(short) and --help
(full help)# stage files
git add <file path> <file path> ...
git commit -m 'A message describing the change.'
# or commit all changes in working directory
git commit -a -m 'A message describing all changes.'
- file status -
.gitignore
file
<your name>s_test
# show all remotes setup
git remote -v
# add any remote, e.g. your fork or the trunk
git remote add <remote name> <url>
# get updates without changing files
git fetch <remote name>
# get updates and merge/update files
git pull <remote name> <remote branch>
# push to default remote branch
git push
# explicit for non-default branches
git push <remote name> <remote branch>
-> for testing, fork your neighbours test project, clone it and add the ‘trunk’ remote
e.g.
Checkout merge request branch
git fetch git@gitlab.pik-potsdam.de:liersch/swim.git flex_lulc
git checkout -b liersch/swim-flex_lulc FETCH_HEAD
Compare differences to other branch or commit
git diff master --stat
git diff master
git diff HEAD~1 # or ea03d475ded1547
git diff master <file path>
(GitLab will remind you what to do)
doc/