Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

git-branches 951 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. scriptloc=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
  4. r() {
  5. cmd=$*
  6. echo "\$ $cmd"
  7. eval $cmd
  8. echo "------------"
  9. }
  10. tmpdir=$(mktemp -d)
  11. pushd ${tmpdir}
  12. # delete temporary directory on script exit
  13. cleanup() {
  14. rm -rf "${tmpdir}"
  15. }
  16. trap cleanup EXIT
  17. clear
  18. # Initialise repository
  19. r git init
  20. git config --local user.name "Achilleas Koutsou"
  21. git config --local user.email "ak@example.com"
  22. echo "
  23. # Demo repository
  24. Repository for demonstrating git workflow and branches
  25. " > README.md
  26. git add README.md
  27. git commit -m '"Initial commit: Add README"'
  28. mkdir src
  29. echo "import sys
  30. def main():
  31. args = sys.argv
  32. print(f'Script name {args[0]}')
  33. print('Arguments received')
  34. for idx, arg in enumerate(sys.agv):
  35. print(f'{idx}: {arg}')
  36. if __name__ == "__main__":
  37. main()
  38. " > src/script.py
  39. git add src
  40. git commit -m '"Add script.py"'
  41. clear
  42. r git status
  43. r git log
  44. read
  45. clear