본문 바로가기

기타 분야15

다른 사람의 Repo를 내 Repo로 가져오기 (Github) 내 Github에 가져올 Repo의 이름과 동일한 새 Repo를 생성. 이때, README, gitignore, license는 모두 초기화하지 않는다. 가져올 Repo를 내 PC(local)에 다음과 같이 clone 한다. git clone https://github.com/other-account/other-repository.git clone한 local repo를 1번에서 만든 새 Repo와 연결 git remote add origin http://github.com/my-account/my-repo.git git branch -M main git push -u origin main 3번부턴 그냥 아래처럼 github에 나와있는 대로 따라하면 됨 2021. 4. 20.
absolute center(중앙)에 고정시키기 position: absolute로 지정한 div를 중앙에 알아서 고정시키고 싶다면 다음처럼 style을 설정해주면 된다 .absolute-center { position:absolute; top:__px; // 사용자 설정 left:50%; transform:translateX(-50%); } 2020. 5. 11.
css 관련 유용한 사이트들 모음 https://animate.style/ : animate 효과 https://fontawesome.com/ : cdn으로 쉽게 사용할 수 있는 아이콘 https://worldvectorlogo.com/: svg 이미지 https://icons8.com/icons: favicon 2020. 5. 9.
warning: LF will be replaced by CRLF in ~ Git add 시 다음과 같은 경고 발생 제대로 알아보진 않았지만 유닉스와 윈도우즈가 각각 인식하는 개행 문자가 달라서 발생하는 경고라고 하는데, 급해서 일단 해결만 했음. 개인으로 사용할 땐 다음과 같이 해결할 수 있지만, 원인을 고치는 건 아니기 때문에 협업 시 문제가 생길 수 있을 듯 하다. git config core.autocrlf true 참고: https://blog.naver.com/PostView.nhn?blogId=ajdkfl6445&logNo=221369949621&from=search&redirect=Log&widgetTypeCall=true&directAccess=false 2020. 5. 6.
Git(깃) 특정 브랜치 clone(클론) 하기 remote 저장소에서 특정 브랜치를 clone 하고 싶을 때 다음과 같이 커맨드를 작성합니다. git clone -b { branch name } --single-branch { repo url } ex) git clone -b woohyeon --single-branch https://github.com/wooPedia/Leetcode.git 2020. 2. 24.
좋은 커밋 메세지 작성법 https://blog.ull.im/engineering/2019/03/10/logs-on-git.html 2020. 2. 5.