SVN - ynjch97/YNJCH_WIKI GitHub Wiki

  • ν˜„μž¬ 잘 μ‚¬μš©ν•˜μ§€λŠ” μ•Šμ§€λ§Œ 기둝용으둜 μž‘μ„±ν•˜μ˜€μŒ

1. SVN μ„œλ²„ μ„€μΉ˜

  • μ°Έκ³ : https://timeboxstory.tistory.com/98
  • https://www.visualsvn.com/
  • VISUAL SVN SERVER 클릭 > Download > VisualSVN Server 5.3.2 (64-bit) μ„€μΉ˜ 및 μ‹€ν–‰
  • VisualSVN Server and Administration Tools 체크, Add Subversion command-line tools to the PATH environment variable 선택
  • μ„€μΉ˜ μœ„μΉ˜: C:\Program Files\VisualSVN Server
  • μ €μž₯μ†Œ μœ„μΉ˜: C:\Repositories\
  • λ°±μ—… μ €μž₯μ†Œ μœ„μΉ˜: C:\Users\Public\Documents\VisualSVN Server\Backup\
  • Server Port: 443
  • Enable search indexing for repositories 체크 ν•΄μ œ
  • Use Subversion authentiaction 체크
  • μ„€μΉ˜ μ™„λ£Œ

1-1. Repository 생성

  • VisualSVN Server > Repository 우클릭 ν›„ Create New Repository
  • Regualar FSFS repository 선택 > 이름 μ§€μ •
  • Empty repository 선택 > nobody has access 선택 > Allow search indexing of this repository 체크 > Create

1-2. User 생성

  • Users 우클릭 ν›„ > Create User
  • μƒμ„±ν•œ Repository 우클릭 ν›„ Properties > Security > Add > μƒμ„±ν•œ User μΆ”κ°€
  • μƒμ„±ν•œ Repository 우클릭 ν›„ Copy URL to Clipboard (https://[IP μ£Όμ†Œλ‘œ λ³€κ²½]:8443/svn/[μƒμ„±ν•œ μ €μž₯μ†Œλͺ…]/)

2. SVN μ‚¬μš©μž μ„€μΉ˜

  • μ°Έκ³ : https://timeboxstory.tistory.com/100
  • https://tortoisesvn.net/downloads.html
    • TortoiseSVN 1.14.6 - 64-bit λ‹€μš΄λ‘œλ“œ 및 κΈ°λ³Έ μ„€μ •μœΌλ‘œ μ„€μΉ˜
  • SVN Checkout ν•  폴더 생성 ν›„ 우클릭 > SVN Checkout
  • URL of repository : Copy URL μž…λ ₯ (Fully recursive, HEAD revision 은 κ·ΈλŒ€λ‘œ μ„€μ •) > OK > Accept the certificate permanently
  • User 계정 정보 μž…λ ₯ ν›„ OK

Commit λ‚΄μ—­ 보기

  • ν”„λ‘œμ νŠΈ 폴더 우클릭 > TortoiseSVN > Show Log

Copy URL

2-1. VSCode μ—μ„œ μ‚¬μš©ν•˜κΈ°

  • VSCode > Terminal > μ•„λž˜ λͺ…λ Ήμ–΄ μž…λ ₯
svn checkout 'https://192.168.1.217:443/svn/PROJECT/'
  • svn ν™•μž₯ ν”„λ‘œκ·Έλž¨ μ„€μΉ˜
  • 쒌츑 Source Control μ•„μ΄μ½˜ 클릭
    • Checkout: 상단 더보기 > Update
    • Commit: 파일 μ„ νƒν•˜μ—¬ Commit

svn:ignore μ„€μ •

  • ν”„λ‘œμ νŠΈ 폴더 우클릭 > TortoiseSVN > Settings
  • General > Global ignore pattern μ„€μ •
*.o *.lo *.la *.al .libs *.so *.so.[0-9]* *.a *.pyc *.pyo __pycache__ *.rej *~ #* .#* .*.swp .DS_Store [Tt]humbs.db
μœ„μ˜ λ‚΄μš© 뒀에 μ•„λž˜ λ‚΄μš© μΆ”κ°€
.gitignore README.md chunk-JC4IRQUL.js.map chunk-JC4IRQUL.js 
*/.q-cache/vite/spa/deps/*.js (μ•ˆλ¨)

폴더 및 파일 μ‚­μ œ 반영

  • 폴더 및 νŒŒμΌμ„ delete > Source Control > Changes λͺ©λ‘ 확인
  • delete ν•œ ν•­λͺ© 우클릭 > Remove Selected ν›„ Commit ν•΄μ£Όλ©΄ 반영 μ™„λ£Œ