문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 다음 판 | 이전 판 | ||
|
git:gitlab [2021/03/19 09:46] kwon37xi 만듦 |
git:gitlab [2023/05/19 10:20] (현재) kwon37xi |
||
|---|---|---|---|
| 줄 2: | 줄 2: | ||
| * https:// | * https:// | ||
| - | ===== 참조 | + | ===== gitlab-cli |
| - | * [[https://docs.gitlab.com/ee/ci/unit_test_reports.html|Unit test reports | GitLab]] | + | * https://glab-cli.io/ |
| + | * https://github.com/ | ||
| + | ====== Disable Force Push ====== | ||
| + | * rebase, squash 등으로 이미 remote 에 반영된 커밋을 변경하는 것을 방지하기. | ||
| + | * 각각 리포지토리의 branch 별로 설정하는게 있긴하지만, | ||
| + | * 따라서 gitlab hook을 사용해야 한다. | ||
| + | * [[https:// | ||
| + | * '' | ||
| + | <code sh> | ||
| + | #!/bin/sh | ||
| + | # < | ||
| + | # update a blame tree | ||
| + | |||
| + | while read oldrev newrev ref ; do | ||
| + | # old revision is blank - branch creation | ||
| + | if [ " | ||
| + | # new revision is blank - branch deletion | ||
| + | [ " | ||
| + | then | ||
| + | # create new or delete old branch | ||
| + | continue; | ||
| + | fi | ||
| + | |||
| + | base=$(git merge-base $oldrev $newrev); | ||
| + | if [ " | ||
| + | # non fast forward merge | ||
| + | echo "Force pushing of $ref is forbidden"; | ||
| + | exit 1; | ||
| + | fi | ||
| + | done | ||
| + | exit 0; | ||
| + | </ | ||
| + | |||
| + | ===== auto merge / 자동 머지 ===== | ||
| + | * https:// | ||
| + | * https:// | ||
| + | ===== 참조 ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||