반응형

Git 3

git init를 하면 hint 메세지가 나올때

시작하며 언제부턴가 git를 초기화하면 힌트라고 몇줄 쫙나오는데 귀찮아서 그냥 두다가 오늘 정리했습니다. 원인 git init hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch hint: hint: Names commonly chosen instead o..

공부/git 2022.01.14

git pull 가 안먹을때

시작하며 repository에서 clone으로 복사하면 폴더가 생성 되면서 파일들을 다운 받을수 있지만 가끔 폴더가 있어서 삭제 하기 좀 그런 상황이 있습니다. 삭제하고 clone으로 하면 간단하지만요 ^^; git pull 가 안먹을때 제가 방법을 잘 몰라서 인지 모르지만, 저는 remote를 이용하고 이용하고 있습니다. 예를 들어 folderName 라는 폴더가 있을경우 $ cd folderName $ git init $ git remote add origin {repository.url} //인증은 ssh 키로. $ git pull 이렇게 하면 아래와 같은 메시지가 나옵니다. remote: Counting objects: 140, done. remote: Compressing objects: 100..

공부/git 2017.03.17
반응형