본문 바로가기 메뉴 바로가기

jenlog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

jenlog

검색하기 폼
  • All (81)
    • algorithm (71)
      • baekjoon (31)
      • swea (30)
      • programmers (9)
    • JS (1)
    • Vue.js (2)
    • React (2)
    • * etc (5)
  • 방명록

* etc (5)
Gitlab에서 Github으로 저장소 옮기기 (미러링) / commit log 유지

깃랩에서 깃헙으로 커밋로그를 유지한채 레포지토리를 옮겨보자 ! 방법 1. 원본 저장소를 복사한다 (깃헙으로 옮길 원본 레포 주소) $ git clone --mirror [원본 레포지토리 경로] 2. 해당 폴더 안으로 들어간다 $ cd [원본 저장소 이름].git 3. 깃헙에 레포 하나 새로 파고 그 주소를 넣는다 (이동할 원격 저장소 경로) $ git remote set-url --push origin [이동할 원격 레포지토리 주소] 4. push 한다!!! $ git push --mirror 참고 깃헙은 50MB가 넘어가면 안올라간다. 😔 이럴땐 git lfs를 설치하여 올리면 된다!!

* etc 2021. 11. 12. 13:36
[git merge] master 상태 다를 때 branch 커밋 & merge 요청하기

1. 해당 branch에서 add 랑 commit 까지만 하고 2. git switch master 해서 master로 이동 3. git pull origin master 4. git merge 5. git push origin master 6. git branch -D

* etc 2021. 7. 14. 18:45
git add, commit 취소

git add 취소 $ git reset # 전체파일 add 취소 $ git reset HEAD {파일명} # {파일명} add 취소 git commit 취소 $ git reset HEAD^ # 가장 최신 커밋 1개 취소 $ git reset HEAD^^ # 가장 최신 커밋 2개 취소 HEAD위의 꺽쇠 개수만큼 최신 커밋부터 순서대로 삭제 가능

* etc 2021. 7. 14. 18:34
Draft: merge 병합 에러, merge 안됨 (github/ gitlab)

merge할 때 분명히 새로운 폴더가 추가됐거나 암튼 뭔가 바꿨는데 Draft: 이런식으로 뜨면서 merge가 안되는 경우는, gitignore때문에 반영이 안되는 변경사항이거나, 개발환경설정때문에 생긴 폴더이거나, git에 반영안되는 파일의 변경사항일 경우 일어난다. 그래서 변경/추가할 파일이 없어서 merge가 안되는 것이다. 나는 closed로 머지를 닫고 test파일을 하나 추가해줘서 merge를 완료할 수 있었다.

* etc 2021. 7. 14. 18:25
[git 에러] Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch

에러메세지 " Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic branch " 해결 방안 1. i 입력 2. merge에 대한 commit 메세지 입력 3. esc 입력 4. :wq 입력 5. enter 입력 끝 !!

* etc 2021. 7. 14. 18:11
이전 1 다음
이전 다음
글 보관함
TAG
  • 알고리즘
  • BFS
  • 파이썬
  • merge에러
  • swea
  • 2018 카카오 공채
  • 삼성기출
  • 20057 마법사 상어와 토네이도
  • 기지국설치
  • 2579 계단오르기
  • 프로그래머스
  • 17406 배열돌리기4
  • 20056 마법사 상어와 파이어볼
  • 보석쇼핑
  • 브루트포스
  • merge 에러
  • git 미러링
  • dfs
  • 삼성코테
  • 21609 상어 중학교
  • 영어끝말잇기
  • Python
  • dp
  • react
  • 백준
more
최근에 올라온 글
Total
Today
Yesterday
최근에 달린 댓글
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

jennnn.tistory.com

티스토리툴바