본문 바로가기

웹도구 및 Plugin/git

(3)
git error: update_ref failed for ref commit message 변경 1. git log 확인 2. commit id 확인 3. git rebase --interactive [commit id] 4. pick을 edit로 변경 5. 저장 - 저장 command > !wq - 나가기 > :q! 6. git commit --amend, git rebase --continue를 실행 ----------------- 아래와 같은 메시지가 발생할 경우 C:\DEV\8_dev\fdp-ide>git rebase --continue error: update_ref failed for ref 'refs/heads/feature-IDE-1399-Properties-editingtype처리-1': cannot lock ref 'refs/heads/feature..
Git Bash를 이용한 branch 삭제 [ Local Branch 삭제 ]1. 특정 branch 삭제$ git branch -d "[브런치명]"2. 하위 폴더안의 branch 전체 삭제 $ git branch | grep '[상위폴더]' | xargs git branch -d 3. 강제 branch 삭제 error : The branch '브런치이름' is not fully merged. If you are sure you want to delete it, run 'git branch -D '브런치이름'. branch를 삭제하려고 하는데 위와 같은 에러가 발생한다면. "-D" 대문자를 입력한다.$ git branch -D "[브런치명]"$ git branch | grep '[상위폴더]' | xargs git branch -D [ Remote ..
이미 만들어진 프로젝트 Git 올리기 1. Create new repository ※ Clone URL은 Create new repository 생성 후 다음 페이지에서 나옵니다.2. Git Bash Open3. 프로젝트 저장 폴더로 이동 $ cd "c:\WebSite" 4. 명령어를 입력합니다.$ git init $ git add .$ git commit -m "first commit" ※ $ git commit -m "{ comment }"$ git remote add origin { github Clone URL } ※ Clone URL은 Create new repository 생성 후 다음 페이지에서 나옵니다. $ git push origin master 5. git repository를 확인합니다.