반응형 git4 Git 메시지에 관한 글 ! [rejected] main -> main (non-fast-forward)error: failed to push some refs to 'https://github.com/sungchanyoung/security.git'hint: Updates were rejected because the tip of your current branch is behindhint: its remote counterpart. If you want to integrate the remote changes,hint: use 'git pull' before pushing again.hint: See the 'Note about fast-forwards' in 'git push --help' for details(fast-f.. 2025. 3. 21. git 실행원리 순서폴더를 만든다 2. git bash -> git init 명령어 입력 git init => 깃 작업을 할 수 있게 만들어주는 명령어 3. git에 등록할 파일 생성 + 내용 입력 4.git 내부에서 변경 감지 - 변경이 감지 되면 untracked 파일명 이라고 화면 뜬다. untracked => 추적되지 않음 5.git add . => Index영역에 하나의 트리 구조 생성 된다. 그림과 같이 하늘색 박스 : 40자 Hash 코드로 이루어져 있다. Hash코드를 알 수 있는 방법 - git log 입력(내가 작업한 파일 전체 HashCode) , 내가 작업한 파일에. git /refs/heads/main(메모장 선택) 지금 헤더가 가리키고 있는 파일 HashCode(단 한 개) 6.git co.. 2025. 2. 8. git 협업을 위한 Organization 만들기 Organiztion (조직): 개인 계정으로 조직 계정에 참여해 공유 프로젝트에 대해 공동 작업함 깃 허브에 들어가서 -> your repository 클릭 - > new organiztion 클 릭 학업용으로 할 경우 에는 Free로 해주면 된다 . Orgainzation name을 팀명이나 프로젝트 명으로 아무거나 설정해주면 된다. -> contact email은 내가 자주 사용하는 이메일 기입 Organization belongs to - mypersonal account(개인 계정), 비즈니스용 조직 계정이면 a business instiution 설정 belongs to : 의 소유물이다 , 에 소속된다. 밑에 체크 박스 및 Verify your account까지 설정해.. 2024. 10. 9. git 에러 (Push error)- On branch main nothing to commit, working tree clean git commit -m "메시지 입력" -> On branch main nothing to commit, working tree clean (git은 커밋할 것이 없고 작업 드렉토리는 깨끗합니다)라는 설명 이 에러 메세지는 push error 중에 하나이다.git psuh를 사용해서 변경 사항을 푸시해야 합니다. 해결 방안1) rm -rf. git/ 2) git init 3) git commit -m “메시지 입력” 4) git remote add origin 레포지토리 주소 5) git push -f origin main 2024. 9. 15. 이전 1 다음 반응형