Git 썸네일형 리스트형 [기타] Git 사용법: 초보자를 위한 기본 가이드 Git 사용법: 초보자를 위한 기본 가이드 Git은 분산 버전 관리 시스템으로 소스 코드를 효과적으로 관리할 수 있도록 도와줍니다. 하지만 처음 사용하려면 어려움을 겪을 수도 있습니다. 이번 글에서는 Git을 처음 사용하는 초보자를 위한 기본 가이드를 제공합니다. Git 저장소 생성하기 Git을 사용하기 위해서는 먼저 Git 저장소를 생성해야 합니다. Git 저장소는 Git으로 관리되는 디렉토리입니다. 다음은 Git 저장소를 생성하는 방법입니다. git init 위 명령어를 실행하면 현재 디렉토리에 Git 저장소가 생성됩니다. Git 저장소가 생성되면 Git으로 파일을 관리할 수 있습니다. 파일 추가하기 Git 저장소에 파일을 추가하기 위해서는 git add 명령어를 사용합니다. 다음은 파일을 추가하는 .. 더보기 [Jenkins] Jenkins에서 GitLab Webhook을 구성하는 방법(자동빌드) Jenkins에서 GitLab Webhook을 구성하는 방법(자동빌드) [Jenkins 작업] Jenkins 플러그인 설치 GitLab Plugin을 설치합니다. Dashboard > Jenkins 관리 > Plugin Manager GitLab API token 등록(Credentials) Dashboard > Jenkins 관리 > Manage Credentials Dashboard > Jenkins 관리 > System Configuration > 시스템 설정 프로젝트(PHP_Deployment) 설정 Webhooks URL, Webhooks Secret token 잘 기억합니다. Webhooks URL : http://jenkins.xxxxx.com:8080/project/PHP_Deploymen.. 더보기 [git 명령어] git clone git clone 사용법: git clone [] [--] [] git clone https://github.com/anti1346/project1.git $ git clone https://github.com/anti1346/project1.git 'project1'에 복제합니다... remote: Enumerating objects: 64, done. remote: Counting objects: 100% (64/64), done. remote: Compressing objects: 100% (42/42), done. remote: Total 64 (delta 19), reused 38 (delta 9), pack-reused 0 오브젝트를 받는 중: 100% (64/64), 9.62 KiB | 3... 더보기 [GIT] 깃 태그(git tag) 생성, 삭제 깃 태그(git tag) 생성, 삭제 태그 생성 방법 - Lightweight 태그 git tag v1.1.1 $ git tag v1.1.1 $ git show v1.1.1 commit e178f0c017bfba73cdc35c08b532d3cbf608c494 (HEAD -> development, tag: v1.1.1, origin/testing, origin/development) Author: sangchul Date: Wed Jan 27 10:42:15 2021 +0900 branch 추가 diff --git a/README.md b/README.md index e69de29..38f8e88 100644 --- a/README.md +++ b/README.md @@ -0,0 +1 @@ +dev di.. 더보기 [GIT] 깃 브랜치(git branch) 생성, 삭제 git branch 생성, 삭제 로컬 branch 생성(Deployment environment) git branch [] (-c | -C) [] git checkout -b "testing" $ git checkout -b "testing" Switched to a new branch 'testing' $ git checkout -b "staging" Switched to a new branch 'staging' branch 확인(현재 branch) git branch --list git branch $ git branch -- dev master testing * staging --- 로컬 branch 이름 변경(dev -> development) git branch [] (-m | -M) [] gi.. 더보기 git clone 디렉토리 지정 및 변경 방법 git clone 디렉토리 지정 및 변경 방법git clone 명령어로 저장소를 복제할 때 복제된 디렉토리 경로를 지정하거나 변경할 수 있습니다.1. 디렉토리를 미리 생성하고 복제하기mkdir my_projectcd my_projectgit clone 2. 복제 시 바로 디렉토리 이름 지정하기git clone 명령어에서 목적지 디렉토리 이름을 직접 지정할 수 있습니다.git clone git cloen https://github.com/anti1346/project1.git projectCloning into 'project'...remote: Enumerating objects: 64, done.remote: Counting objects: 100% (64/64), done.remote: Compre.. 더보기 [리눅스] Install Gitlab on CentOS Install Gitlab on CentOS 1. Prerequisites - Openssh yum install -y openssh-server - Postfix yum install -y postfix chkconfig postfix on - Cron yum install -y cronie 2. Download curl -O https://downloads-packages.s3.amazonaws.com/centos-6.6/gitlab-7.7.1_omnibus.5.4.1.ci-1.el6.x86_64.rpm 3. Install yum install -y gitlab-7.7.1_omnibus.5.4.1.ci-1.el6.x86_64.rpm 4. Configure - Edit External URL vim /.. 더보기 [리눅스] git 설치(gitlab) git 설치(gitlab) gitlab 다운로드 https://packages.gitlab.com/gitlab/gitlab-ce 1. Install and configure the necessary dependencies yum install -y curl openssh-server postfix cronie service postfix start chkconfig postfix on lokkit -s http -s ssh 2. Add the GitLab package server and install the package curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash yum i.. 더보기 이전 1 2 다음