콘텐츠로 이동

2026 02 06

2026-02-06

overscroll-behavior

참고: https://junghyeonsu.com/posts/overscroll-behavior/

  • 개요
    • overscroll-behavior: auto | contain | none
      • auto: 기본값으로 스크롤이 부모에게 전달됨
      • contain: sibling element에 대해서는 스크롤 체인이 발생하지 않음. child element에 대해서는 스크롤 체인이 발생
      • none: 스크롤이 전달되지 않음

Git Worktree

참고: https://blog.outsider.ne.kr/1588

  • 개요
    • 다수의 워킹 디렉터리(워킹 트리)를 관리할 수 있게 해주는 명령어
    • 현재 디렉토리를 복사를 하고, 그 안에서 작업을 하고, 나중에 브랜치 병합하듯 병합할 수 있게 해주는 기능
  • 실습
    /Desktop/TIL   master  git worktree add -b wt/2026-02-06 ../TIL-wt-2026-02-06 master
    Preparing worktree (new branch 'wt/2026-02-06')
    HEAD is now at 04c5de0 2026-01-28 ELK 수집 지연 개선
    
    /Desktop/TIL   master  ll
    total 8
    drwxr-xr-x  10 kakao  staff   320B Dec 28  2022 2021-woowacourse
    drwxr-xr-x  16 kakao  staff   512B Jan  3  2023 2022-swmaestro
    drwxr-xr-x  19 kakao  staff   608B Jan  9  2024 2023-kakao-1st
    drwxr-xr-x  17 kakao  staff   544B Jan  2  2025 2024-kakao-2nd
    drwxr-xr-x@ 18 kakao  staff   576B Jan  2 15:22 2025-kakao-3rd
    drwxr-xr-x@  6 kakao  staff   192B Jan 28 17:50 2026-01
    -rw-r--r--   1 kakao  staff    59B Dec 28  2022 README.md
    
    /Desktop/TIL   master  cd ..
    
    /Desktop  ll
    drwxr-xr-x@ 13 kakao  staff   416B Feb  6 17:44 TIL
    drwxr-xr-x@ 11 kakao  staff   352B Feb  6 17:45 TIL-wt-2026-02-06
    
    /Desktop  cd TIL-wt-2026-02-06 
    
    /Desktop/TIL-wt-2026-02-06   wt/2026-02-06  git stash pop
    On branch wt/2026-02-06
    Changes to be committed:
      (use "git restore --staged <file>..." to unstage)
            new file:   2026-02/2026-02-06.md
    
    Dropped refs/stash@{0} (453bfc8184ac3531e0bba7b1b73d97fb0bc98554)
    
    /Desktop/TIL-wt-2026-02-06   wt/2026-02-06 ✚  git add -A                           
    
    /Desktop/TIL-wt-2026-02-06   wt/2026-02-06 ✚  git commit -m "2026-02-06 worktree 실습" 
    [wt/2026-02-06 4bb1b35] 2026-02-06 worktree 실습
     1 file changed, 36 insertions(+)
     create mode 100644 2026-02/2026-02-06.md
    
    /Desktop/TIL-wt-2026-02-06   wt/2026-02-06  cd ../TIL
    
    /Desktop/TIL   master  ls
    2021-woowacourse 2022-swmaestro   2023-kakao-1st   2024-kakao-2nd   2025-kakao-3rd   2026-01          README.md
    
    /Desktop/TIL   master  git merge wt/2026-02-06
    Updating 04c5de0..4bb1b35
    Fast-forward
     2026-02/2026-02-06.md | 36 ++++++++++++++++++++++++++++++++++++
     1 file changed, 36 insertions(+)
     create mode 100644 2026-02/2026-02-06.md
    
    /Desktop/TIL  ↱ master  git worktree remove ../TIL-wt-2026-02-06
    
    /Desktop/TIL  ↱ master ±  ls
    2021-woowacourse 2022-swmaestro   2023-kakao-1st   2024-kakao-2nd   2025-kakao-3rd   2026-01          2026-02          README.md