
Dev/git

origin 브랜치 푸쉬했는데, 나는 init 때려서 돌아온 상황
지금 보면 origin/features/qa 만 remote에 딸랑 있다. 왜냐면 내가 로컬 featrues/qa도 했는데, 되돌렸거등.. 그럼 다른 곳에서 features/qa를 작업하고 origin에 푸쉬하면, 현재 리모트에 있는것과 충돌 하겠지? 이럴때 어떻게 해야할까? Simple is best. origin 브랜치 삭제해버린다. git push origin --delete feature/TEST-860
Git 커밋 로그 수정
가장 최근의 commit 수정 git commit --amend https://velog.io/@mayinjanuary/git-%EC%BB%A4%EB%B0%8B-%EB%A9%94%EC%84%B8%EC%A7%80-%EC%88%98%EC%A0%95%ED%95%98%EA%B8%B0-changing-commit-message [git] 커밋 메세지 수정하기 (changing commit message) 로컬에 있는, 혹은 리모트에 이미 올라간 commit message 를 수정하는 방법을 알아봅니다. 가장 최신의 commit 을 수정하는 방법과, 더 오래된 commit 을 수정하는 방법을 알아봅니다. velog.io
git log 예쁘게
git config --global alias.logs "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)%Creset' --abbrev-commit" git logs 하면 뜸
내가 마주친 Git 명령어 원격 pull
동료가 로컬에서 features/mobile-header를 작업끝내고 원격에 올렸다. (remote/origin/features/mobile-header) 그럼 내가 내가 로컬에서 features/desktop-header 을 작업하다가 git pull origin/features/mobile-header 로 땡기면 내거랑 자동으로 머지가 된다. 그리고 여전히 features/desktop-header 이면서 동료의 브랜치가 머지가 된 상태가 된다. (충돌없을시) 내 생각엔, 동료 브랜치를 pull로 땡기고, 내거를 fast-foward 머지된것 같다. 어느새 티스토리도 이모티콘 생겼다 ㄷㄷ
![[git] Logon failed, use ctrl+c to cancel basic credential prompt](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcJN8ZQ%2FbtqR1D6RTmG%2F1tUhgKHkXoU0W99h9dX7P1%2Fimg.png)
[git] Logon failed, use ctrl+c to cancel basic credential prompt
git 갑자기 git push 할때마다 github 로그인 하라고 창이 뜹니다. 한번 로그인 하면 자격증명 관리자가 정보를 가지고 있어서, github 로그인 창이 안떠야 하는데.. 알고보니 로그인을 하니 자꾸 Logon failed, use ctrl+c to cancel basic credential prompt 이라고 뜹니다. 알고보니 로그인에 계속 실패하고 있었습니다. 그리고 푸쉬할때마다 prompt로 아이디랑 비번을 계속 입력해줘야 합니다. 이렇게 해야 푸쉬가 됩니다. 하지만 매번 푸쉬할때마다 아이디랑 비번을 입력하는게 쫌 그렇습니다. git update-git-for-windows 검색을 해서 알아보니 git을 최신버전으로 업데이트하면 이런 문제가 사라진다고 합니다. 업데이트를 하니 정말사라졌습..
![[git] commit 을 했는데 contribution 그래프가 안채워진 경험 (private repository, email변경)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FS8sNe%2FbtqR1ED7cDl%2FcAy0JhVPrj2uRH1aFnT5pk%2Fimg.png)
[git] commit 을 했는데 contribution 그래프가 안채워진 경험 (private repository, email변경)
상황 다른 사용자의 private repository에 collaborator 로 등록되어 있고, git extentions을 사용하고 있었습니다. 그러던 중 깃허브 홈페이지에서 연동되어있는 계정을 변경하게 되었습니다. private repository 원래 private repository 는 contribution 그래프에 표시가 안됐는데, 언제 업데이트가 됐는지 이제는 설정을 하면 표시가 됩니다. Private contributions 를 클릭하면 됩니다. git extentions 제가 로컬에서 올리는 계정의 아이디와 계정을 다시 설정해줍니다. git config --global user.email "your_email@abc.com" git config --global user.email git..