Skip to content

Instantly share code, notes, and snippets.

View rapgru's full-sized avatar
📚
Studying

Raphael Gruber rapgru

📚
Studying
  • TU Wien
  • Austria
View GitHub Profile
@daicham
daicham / .gitlab-ci.yml
Last active May 3, 2023 07:05
A sample of .gitlab-ci.yml for a gradle project
image: java:8-jdk
stages:
- build
- test
- deploy
before_script:
# - echo `pwd` # debug
# - echo "$CI_BUILD_NAME, $CI_BUILD_REF_NAME $CI_BUILD_STAGE" # debug
@despairblue
despairblue / squash-before-public-release.sh
Created March 16, 2016 19:13
squash entire git history
# use at your own risk, might eat hamster and nose dragons
git branch -m master master-bak
git checkout --orphan master
git reset --hard
git commit --allow-empty -m 'init'
git merge --ff --squash master-bak
git commit --amend
git push --force