728x90 git6 git stash 사용법 여러 명이서 같은 git Repositorie에서 작업을 한다. 내가 git에 최종적으로 push를 하고 다음 작업을 하려고 branch를 생성했다. 내가 작업하는 중간에 동료가 git push를 해서 나는 최신 소스코드 한 단계 아래에 있다. 이때 git pull을 하면 충돌이 날 것이다. git stash를 해서 잠깐 다른데 저장을 한 다음에 pull을 받고 다시 branch를 생성한 후 다시 저장한 것을 불러오면 된다. 🤔 git stash 란? - 새로운 stash를 스택에 만들어하던 작업을 임시 저장 터미널에서 git stash -h 로 사용법(도움말)을 볼 수 있다. (-h는 help의 약자이다.) git stash -h : git stash를 어떻게 쓰는지 설명해 주는 help 명령어 git.. 2023. 7. 5. [GitHub] (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope) 해결 방법 📝 git push를 하고 있는데 에러가 발생했다. ! [remote rejected] feature/STC-134 -> feature/STC-134 (refusing to allow a Personal Access Token to create or update workflow `.github/workflows/build.yml` without `workflow` scope) error: failed to push some refs to 'https://github.com/haiicorp/strokcare-app-unity.git' 발급받은 Access token(푸시할때 사용하는 개인 액세스 토큰(PAT, Personal Access.. 2023. 3. 8. 연동할 git 계정의 이름과 이메일 설정 방법 ⭐ git clone 방법 cd 경로설정 git clone url (지정하고 싶은 파일 이름) 📌 url 설명 clone을 할 Git Repository에 가서 Code에 있는 url을 복사해서 붙여 넣으면 된다. ( url 옆에 아이콘을 누르면 바로 복사가 된다. ) git config --global user.name 깃계정이름 git config --global user.email 깃가입이메일 git config user.name git config user.email 연동할 git 계정의 이름과 이메일을 설정함 git config --global user.name 깃계정이름 git config --global user.email 깃가입이메일 지금 연동되어있는 git 계정 이름과 이메일을 알려줌 g.. 2022. 1. 25. [GitHub] Push 에러 해결하기 (error: failed to push some refs to) 📝 github에 commit을 하다가 git push origin master 를 입력했는데 갑자기 에러가 발생했다. ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/jiyeong1004/JAVA200_Intermediate.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You.. 2021. 7. 5. [GitHub] Repository 삭제하는 방법 📌 GitHub와 Eclipse 연동하는 방법에서 만들었던 Repository를 삭제하는 방법입니다. 📝 GitHub를 처음 사용하거나 아직 사용 방법을 모르는 사람들이 참고하면 좋을 것 같습니다. 삭제하고 싶은 Repository에 들어가서 Settings를 클릭한다. 맨 밑으로 내리고 Delete this repository를 누른다. 자신의 깃허브 ID / 해당 Repository의 이름을 똑같이 써준다. 똑같이 잘 써줬으면 I understand the consequences, delete this repository 버튼을 누를 수 있게 된다. 버튼을 누르면 해당 Repository가 성공적으로 삭제된 것을 알 수 있다. 2021. 5. 13. GitHub와 Eclipse 연동하는 방법 📌 Naver Blog - [Eclipse / Github] 이클립스와 깃허브 연동하기 & 깃허브로 올리기(parkhj2416 님)를 참고해서 작성하였습니다. [Eclipse / Github] 이클립스와 깃허브 연동하기 & 깃허브로 올리기 이클립스를 통해 개발 중인 프로젝트를 깃허브(github)에 연동시키고, 올리는 방법입니다. 이를 위해 먼저 ... blog.naver.com 📝 GitHub에 Eclipse 프로젝트를 올리는 방법을 잘 몰랐는데 블로그 글을 보고 실습을 하면서 알게 되었습니다. 내가 알게 된 것을 네이버 블로그 글을 참고하여 조금 더 자세히 정리해보려 합니다. 다른 사람이 내 글을 참고해서 볼 수도 있겠지만 나중에 내가 또 방법을 잊어버리더라도 쉽고 빠르게 알 수 있도록 정리했습니다... 2021. 5. 11. 이전 1 다음 728x90