GIT

    PC의 stash를 다른 PC에 적용하기

    개요 저는 개발용 PC로 집에서 사용하는 Windows 데스크탑과, 집 밖에서 사용하는 Mac 두 PC로 주로 개발을 진행하는데요. 이렇게 여러 환경에서 개발을 진행 할 경우 작업을 완료하지 않은채로 github에 작업사항을 commit 하게되는 경우가 있는데요. 이러한 노트북 + 데스크탑 또는 Windows 노트북 + MacBook 환경과 같이 여러 환경에서 프로젝트 작업 시 PC의 작업사항을 stash로 옮기는 방법을 소개합니다. 먼저 작업사항을 stash 한 이후 아래의 작업을 이어가시면 됩니다. Stash를 Patch로 만들기 PC의 가장 최근 stash 작업사항을 changes.patch 파일로 저장 $ git stash show "stash@{0}" -p > changes.patch stash..

    [React] gh-pages -d build npm 오류 해결 (git 자격증명)

    니코쌤 강의 도중 github page에 배포하는 부분에서 오류가 발생했다. 1. A branch named 'gh-pages' already exists. 검색해보니 node_modules/.cache/gh-pages 폴더 삭제하면 됨 2. remote: Permission to gogoadl/movie_app_2021.git denied to AdamPark0030. fatal: unable to access 'https://github.com/gogoadl/movie_app_2021.git/': The requested URL returned error: 403 이건 최초로 git에 등록한 계정과 배포에 사용할 계정이 다를경우 발생하는데, Windows 사용자 기준으로 Windows 키 > 자격 증..

    [Git] 로컬 저장소와 원격 저장소 연동하기

    1. Github 사이트에서 새로운 레포지토리 생성하기 github.com/new GitHub: Where the world builds software GitHub is where over 56 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com 2. 생성한 레포지토리 주소 복사하기 3. 연동할 로컬 저장소 위치로 이동하기. ( ex) C:\Users\HyeonWoo\repository) 4. git init 5. git ..