버전 관리

Dec 14, 2023
버전 관리
  • 깃은 버전 관리 시스템으로 폴더 별로 정리하는 것을 자동화한다.
notion image
 

버전 관리-형상 관리

 
  • 변경 된 걸 제외하고 형상을 맟춰야한다.
    • 로컬 컴퓨터1 에서 ci에 저장을 데이터를 로컬 컴퓨터 2에 다운 받으려면 ci에 형상과 맞춰야 된다.
    • ci에 수정해서 올릴려면 ci의 형상과 동일 해야된다.
 

깃 허브(CI 역할)-cloud 저장소

  • 로컬 컴퓨터에서 깃 허브로 연결하는 법
    • 터미널을 git bash로 맞춰 놓고 진행
 
notion image
 
 
notion image
 
notion image
 
 
notion image
  • git push origin master라고 먼저 입력 한 다음에 깃 허브 로그인 창 뜨면 로그인 하기.
    • 윗 화면 뜨면 연결이 된거임.
       
       
       

      cloud에 commit한걸 보는 법

      notion image
      notion image
       
       

      브랜치(branch)

      notion image
      notion image
      💡
      (status는 현재 상태를 말해주는 코드. branch를 바꿀 꺼면 클린한 상태에서 해야 됨.)
       
       
      notion image
      💡
      (branch를 생성하는 코드) ex) git branch (branch명)
       
      notion image
      💡
      몇 개의 branch가 있는지 확인 할 수 있음
       
      notion image
      💡
      branch를 이동 할 때는 commit하고 이동 해야됨. branch를 바꾸고 싶을 때 사용 하는 코드
      test (branch)생성 확인
      test(branch)가 생성됨
      test(branch)가 생성됨
      notion image
      notion image
      💡
      test(branch)에서 저장한 것이 master(branch)에서는 나타나지 않는다.
       
       
       
       
Share article
RSSPowered by inblog