A git hook creating a labfolder entry for each push.
The hook will ask you for your Labfolder password, in case it cannot find a valid token in $HOME/.labfolder_token.sh
which is being created during usage.
- Copy
scripts/pre-pushto$PROJECT_ROOT/.git/hooks/pre-push - create 2 needed files below
- git push as usual and enter password if needed
note: depending on your IDE you might not see the password prompt asking for your labfolder password.
Also 2 files are required:
this files configures the Labfolder project ID where entries go.
The project id can be found in the url bar of your browser.

#!/bin/sh
PROJECTID=3358#!/bin/sh
USER='user'
LABFOLDER_HOST='labfolder.server.de'Simply do git push as usual. The hook will create the corresponding entry in the ELN.
