본문 바로가기

반응형

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.. 더보기
GitHub 개인 액세스 토큰을 사용하는 방법 GitHub 개인 액세스 토큰을 사용하는 방법 비밀번호로 접근 시 에러 Support for password authentication was removed on August 13, 2021. Please use a personal access token instead. Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information. $ git push -u origin main Username for 'https://github.com': [email protected] Password for 'https://[email protected]@github.co.. 더보기
[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 명령어] git clone 디렉토리 지정(변경)하기 git clone 디렉토리 지정(변경)하기 git clone 명령어를 사용하여 저장소를 복제할 때, 복제된 디렉토리를 특정 위치로 지정하는 방법이 있습니다. 1. 디렉토리를 먼저 생성하고 그 안에서 git clone 실행 mkdir my_project cd my_project git clone 2. -o 또는 --origin 옵션 사용 git clone my_project 3. git clone 명령어에 경로를 직접 지정 구문) git clone git cloen https://github.com/anti1346/project1.git project $ git clone https://github.com/anti1346/project1.git project Cloning into 'project'... .. 더보기
[리눅스] 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 /.. 더보기

728x90
반응형