git을 전송할때 압축하는데 서버측에서 메모리 부족으로 뻗을수 있으니

로컬에서 압축하지 않고 보내도록 하면 되는 듯?

remote: Counting objects: 50044, done.
remote: aborting due to possible repository corruption on the remote side.
fatal: 프로토콜 오류: 잘못된 묶음 헤더

 

Adding git config --global pack.window "0" worked for me...along with following

git config --global pack.windowMemory "100m"
git config --global pack.packSizeLimit "100m" 
git config --global pack.threads "1"
Reason:

Git clone compresses the data while cloning the repository

It compresses the data on the server memory before receiving the data/files.

If the server has out of memory you will get the above error while packing the objects

You can fix the issue by making git clone the repository without packing the objects on the server with the following.

git config --global pack.window "0"

[링크 : https://stackoverflow.com/questions/4170317/git-pull-error-remote-object-is-corrupted]

Posted by 구차니

로컬에서 소스 관리 하다가

서버의 특정 디렉토리에 이력을 같이 넣고 싶어서 방법을 찾는 중

 

[링크 : https://mansoo-sw.blogspot.com/2017/08/git-repository-merge.html]

[링크 : https://luckyyowu.tistory.com/352]

[링크 : https://backlog.com/git-tutorial/kr/stepup/stepup7_4.html] cherry-pcik

[링크 : https://stackoverflow.com/questions/1214906/how-do-i-merge-a-sub-directory-in-git]

Posted by 구차니

특정 디렉토리를 제외하려면 그냥 적고

그 안에 특정 파일은 버전관리 하려면

!/path/filename

으로 적어주면 된다.

[링크 : https://stackoverflow.com/questions/987142/make-gitignore-ignore-everything-except-a-few-files]

Posted by 구차니

centos 에서 서비스 명을 겨우 찾음.. -_-


# ll /etc/systemd/system/basic.target.wants

합계 0

lrwxrwxrwx. 1 root root 41  1월 16  2017 firewalld.service -> /usr/lib/systemd/system/firewalld.service

lrwxrwxrwx. 1 root root 47  1월 16  2017 gitlab-runsvdir.service -> /usr/lib/systemd/system/gitlab-runsvdir.service

lrwxrwxrwx. 1 root root 41  1월 16  2017 microcode.service -> /usr/lib/systemd/system/microcode.service 

[링크 : https://www.digitalocean.com/.../how-to-use-systemctl-to-manage-systemd-services-and-units]


# systemctl status gitlab-runsvdir

● gitlab-runsvdir.service - GitLab Runit supervision process

   Loaded: loaded (/usr/lib/systemd/system/gitlab-runsvdir.service; enabled; vendor preset: disabled)

   Active: active (running) since 화 2019-01-22 12:42:45 KST; 3 weeks 3 days ago

 Main PID: 620 (runsvdir)

   CGroup: /system.slice/gitlab-runsvdir.service

           ├─  620 runsvdir -P /opt/gitlab/service log: ....................................................................

...

           ├─18710 sleep 3000

           └─18789 sleep 1


 1월 22 12:42:45 localhost.localdomain systemd[1]: Started GitLab Runit supervision process.

 1월 22 12:42:45 localhost.localdomain systemd[1]: Starting GitLab Runit supervision process... 


설치

[링크 : https://wikidocs.net/16279]

[링크 : https://blog.asamaru.net/2015/09/22/how-to-install-gitlib-on-centos/]


업그레이드 및 중지

[링크 : https://hreeman.tistory.com/79]


자동실행

[링크 : https://stackoverflow.com/questions/27983295/gitlab-autostart-on-boot]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 저장소 합치기  (0) 2019.06.03
gitignore 특정 파일은 예외에서 제외시키기  (0) 2019.04.17
git branch  (0) 2019.01.29
git 윈도우 자격증명 관리  (0) 2019.01.16
git tag  (0) 2018.12.07
Posted by 구차니

브랜치 다시 도전.. ㅠㅠ

저번에 쓴건 먼가 운영을 잘못한 느낌이네..


[링크 : https://www.zerocho.com/category/Git/post/582342a73fbde700178771f5]

[링크 : https://www.zerocho.com/category/Git/post/582df1c8d349570018107477]

Posted by 구차니

계정이 잘못 입력되면

다른 명령어로 할게 아니라

윈도우에서 자격 증명 가서 "Windows 자격 증명"에서 삭제하면 된다.



[링크 : https://code.i-harness.com/ko-kr/q/eab2ce]

'프로그램 사용 > Version Control' 카테고리의 다른 글

gitlab 서비스 명(centos)  (0) 2019.02.15
git branch  (0) 2019.01.29
git tag  (0) 2018.12.07
git log . - 현재 디렉토리 이하의 변경내역 보기  (0) 2018.11.02
.gitignore  (0) 2018.10.22
Posted by 구차니

svn 이랑은 또 개념이 달라서 한참을 봐야 할듯..

걍 branch랑은 다르게 편하게 좀 쓸 수 있을것 같기도 하고..


[링크 : https://git-scm.com/book/ko/v1/Git의-기초-태그]

Posted by 구차니

의외로 싱겁네 -_-

콘솔에서 자주 이용하는데 매번 너무 길게 나와서 불편했는데..


[링크 : https://stackoverflow.com/.../how-to-show-git-log-history-for-a-sub-directory-of-a-git-repo]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 윈도우 자격증명 관리  (0) 2019.01.16
git tag  (0) 2018.12.07
.gitignore  (0) 2018.10.22
git 리비전 이동 후 pull 안되는 문제  (0) 2018.10.22
git 리비전 돌아 다니기  (0) 2018.10.18
Posted by 구차니

머.. 거장한것 없이 프로젝트 최상위 폴더에

.gitignore로 생성하고

상위 폴더 경로나 특정 파일명 혹은 *을 포함해서 적어주면 된다.


[링크 : https://nesoy.github.io/articles/2017-01/Git-Ignore]


+

vscode에서 최상위 프로젝트 파일에다가 설정해주니 하위에서도 정상적으로 gitignore가 적용된다.

걍.. 폴더로 무시하는게 답이었던 듯..

$ cat .gitignore

node_modules/ 

[링크 : http://trend21c.tistory.com/1471]

Posted by 구차니

git pull 하다 보니 에러가 나서 확인하려고 보는데

detached branch 라던가

You are not currently on a branch 이라던가 나오는데


생각해보니 구버전으로 잠시 돌려놓았던 것이 문제..

아무튼 결론(?)은 master로 돌리고 나서 손을 보면 된다?


[링크 : https://okky.kr/article/437352]

[링크 : https://blog.npcode.com/2012/09/02/git-pull-할-때-옵션-안줘도-알아서-되게-하기/]

[링크 : http://sunphiz.me/wp/archives/2266?ckattempt=1]

[링크 : https://stackoverflow.com/...-currently-on-a-branch-error-when-trying-to-sync-fork-with-upstream]


+

2018.10.23

$ git branch

* (detached from 7ea96f5)

  master

$ git checkout master

Switched to branch 'master'

Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded.

  (use "git pull" to update your local branch) 


'프로그램 사용 > Version Control' 카테고리의 다른 글

git log . - 현재 디렉토리 이하의 변경내역 보기  (0) 2018.11.02
.gitignore  (0) 2018.10.22
git 리비전 돌아 다니기  (0) 2018.10.18
git 상태 다시 읽기  (0) 2018.09.20
git 원격지 주소 변경하기  (0) 2018.09.06
Posted by 구차니