push

    IntelliJ - Git Force Push 활성화 방법

    문제발생IntelliJ IDE에서 Force Push를 하려고 했는데 버튼이 비활성화 되어있었다.해결방법Settings -> Version Control -> Git에 있는 Protected branches에 설정 되어있는 브런치를 지우면 된다.

    git - 작업 중인 프로젝트 깃허브에 업로드하기

    1. 깃허브 레포지터리 생성깃허브 레포지터리 생성 - 깃허브 레포지터리 생성 url위 이미지와 같이 readme 파일과 gitignore 파일을 생성하지 않고 레포지터리 생성2. 명령어 실행프로젝트 디렉토리로 이동하여 아래 명령어 실행git init # 깃 로컬 저장소 생성git add . # 현재까지의 작업 전체 addgit commit -m "first commit" # 커밋 메시지 작성git branch -M master # 마스터 브런치 생성git remote add origin https://github.com/your_name/new_repo_name.git # 레포 주소 등록git push -u origin master # 푸시