WEB study/Git, GitLab

Git, GitLab 입문 (3) - GitHub 환경 설정 (git bash 활용)

pink_salt 2022. 1. 12. 02:20
728x90

안녕하세요 코드프레소 Java 웹 개발 체험단 활동 중인 핑솔입니다!

코드프레소에서 제공하는 '실무자가 알려주는 Git 입문' 강의를 듣고 SW 형상 관리의 기초, Gitlab을 사용한 실무 활용에 대해서 학습하였던 내용을 기반으로 정리하였습니다.

  • SW 형상 관리의 개념
  • Git의 개념 및 설치와 기초 명령어
  • Git의 기초 작업 플로우 - Commit, Push, Pull, Staging
  • Git Branch 및 Tag 활용 전략
  • Gitlab을 활용한 실전 협업

Git의 기본 개념 - 실습 순서

  1. 기본 환경 설정
  2. 원격 저장소 생성
  3. 로컬 저장소 생성
  4. 기본 플로우 실습
  5. Git을 통한 협업

-> git bash 실행

git bash 실행

-> 기본 환경 설정

  • 사용자의 이름, 이메일 기본 설정으로 등록합니다.
    •  
    • git config --global user.name "이름" git config --global user.email "이메일 주소"​

 사용자 기본 환경 설정

  • 기본 에디터를 vim으로 설정
    • git config --global core.editor vim​

vim 설정

  • 설정 정보 확인
    • git config --global --list

설정 정보를 확인

  • 만약에 기본 설정 변경하고 싶다면?
    • vi ~/.gitconfig

변경 후 저장하고 종료하기(ESC + :wq 입력)

gitconfig 파일

-> 실습 사전 조건

  • ~/gittest 폴더를 기본 폴더로 사용합니다.
  • mkdir -> make directory 
  • mkdir ~/gittest

디렉토리 생성해서 들어감.

GitHub

https://github.com/

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

  • 오픈 소스 프로젝트로 협업하는 경우 무료입니다.
  • Private 저장소로 운영하는 경우 유료입니다.
  • 전 세계 개발자들이 하나의 프로젝트를 개발하는 것이 가능합니다.

GitHub Trending

https://github.com/trending

 

GitHub: Where the world builds software

GitHub is where over 73 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat...

github.com

  • 최근 인기 있는 저장소(Repositories) 또는 개발자(Developers)를 볼 수 있습니다.
  • 날짜, language 등을 바꿔서 확인할 수 있습니다.

GitLab

https://about.gitlab.com/

 

Iterate faster, innovate together

GitLab's DevOps platform is a single application for unparalleled collaboration, visibility, and development velocity. Learn more here!

about.gitlab.com

  • Private 저장소로 운영해도 무료(Community 버전)입니다.
  • 상용화 SW에 유용합니다.
  • 주로, 기업에서 인트라넷에 연결해서 사용합니다.

다음 코드프레소의 강의를 통해 GitLab 실습을 하며 공부를 해보겠습니다!

go go!

코드프레소 URL: https://www.codepresso.kr/

728x90
반응형
댓글수0