github 무료 계정은 용량이 500메가로 제한된다. 그러나 public repository는 무제한으로 500메가 제한에 포함되지 않는다.

 

그러나 public repository라도 크기가 100메가 이상인 파일은 올리지 못하게 되어 있다.

 

해결방법은

1. https://git-lfs.github.com/

 

Git Large File Storage

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

git-lfs.github.com

에 방문하여 파일을 다운 받아 설치한다. 윈도우에선 아무데서나 그냥 설치하면 된다.

 

2. 큰 파일이 들어간 local repository로 가서

3. git-bash 에서  다음과 같이 입력한다.

$ git lfs install

$ git lfs track "큰 파일 이름 또는 *.data 와 같은 형식"

$ git add .gitattributes

$ git add .

$ git commit -m "add a large file"

$ git push

 

와 같이 차례대로 하면 된다.

 

아래 사이트를 참조

jekyll 사용에 관한 안내 블로그 Install Jekyll

 

Install Jekyll · Enjoy Jekylling!

 

vjinn.github.io

 

커맨드 라인에서

$ '/c/Program Files/Notepad++/notepad++.exe'

와 같이 사용하거나

 

.bashrc 파일에

alias vi="'/c/Program Files/Notepad++/notepad++.exe'"

와 같은 라인을 넣어 vi나 기타 다른 알리아스로 사용할 수 있다.

원래 실행하면 처음 뜨는 디렉토리에 .bashrc를 만들고

 

moveHome() { cd /c/Users/abc/github; }
moveHome
export HOME=/c/Users/abc/github

 

위의 3줄을 넣어준다.

/c/Users/abc/github 대신에 자신이 원하는 디렉토리 명을 써주면 된다.

git remote remove [원격저장소이름,예 origin] 와 같이하면 삭제된다.

$ git remote remove origin

아래 명령을 사용하면 현재 로컬저장소에 없는 원격저장소의 브랜치를 생성하고, 그 내용을 반영하게 된다.

 

$ git checkout -t [remote branch 이름]

 

그러나 이 명령을 하기 전에 원격 저장소의 브랜치 내용을 업데이트 해주어야 한다.

 

$ git remote update

 

참고

1. jihun's development blog 의 Git remote branch 가져오기

 

+ Recent posts