설치&설정 관련/git
-
git branch main으로 설정하기설치&설정 관련/git 2022. 12. 15. 17:45
2020년 6월 236857: all: replace usages of whitelist/blacklist and master/slave 에서 인종 차별적 요소나 주종 관계의 의미를 담는 whitelist/blacklist와 master/slave를 사용하지 말자는 발제가 있었습니다. github도 기본 branch명을 master에서 main으로 변경하였습니다. master => main 변경 branch 생성시 -M 옵션을 주게되면 해당 branch가 기본이 됩니다. $ echo "# hello world" >> README.md $ git init $ git add README.md $ git commit -m "first commit" $ git branch -M main $ git remote ..
-
gitlab & Jenkins 설치 명령어 정리설치&설정 관련/git 2022. 10. 7. 14:49
gitlab & Jenkins 설치 명령어 정리 CI/CD를 위한 초석으로 gitlab & jenkins를 설치하는 명령어를 정리 합니다. Gitlab 설치 명령어 # 시작전 업데이트 $ yum update -y # repository 등록 $ curl https://packages.GitLab.com/install/repositories/GitLab/GitLab-ce/script.rpm.sh | sudo bash # gitlab 설치 $ yum install -y gitlab-ce.x86_64 # postgresql client 필요로 설치 $ yum install -y postgresql # git 설치 $ yum install git -y 설정 명령어 # 데이터 디렉토리 생성 $ mdir /data..