본문 바로가기

728x90

github

일반적으로 Git 리포지토리를 GitHub에 올리는 방법 일반적으로 Git 리포지토리를 GitHub에 올리는 방법 1. GitHub 리포지토리 생성 GitHub에 로그인하고 새로운 리포지토리를 생성합니다. 프로젝트 이름과 설명을 입력하고, 공개 또는 비공개로 설정합니다. 2. 로컬 Git 리포지토리 초기화 Git을 사용하여 프로젝트 디렉토리에서 로컬 Git 리포지토리를 초기화합니다. 터미널에서 다음 명령을 실행합니다. git init 3. 리모트 리포지토리 연결 로컬 Git 리포지토리를 원격 GitHub 리포지토리와 연결합니다. GitHub에서 생성한 리포지토리의 URL을 사용하여 다음 명령을 실행합니다. git remote add origin 4. 커밋 및 푸시 Git으로 파일을 커밋하고 원격 GitHub 리포지토리로 푸시합니다. 다음 명령을 사용합니다. g.. 더보기
[Linux] How to build and push Docker images with GitHub Actions How to build and push Docker images with GitHub Actions Create a new repository for GitHub new repository > Actions > set up a workflow yourself Editing main.yml editing name: CI on: push: branches: [ main ] jobs: build: runs-on: ubuntu-latest steps: - name: Check Out Repo uses: actions/checkout@v2 - name: Login to Docker Hub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_HUB_US.. 더보기
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': admin@sangchul.kr Password for 'https://admin@sangchul.kr@github.co.. 더보기

728x90