total_repo와 test_repo를 합칠 경우 local에서 둘의 위치 C:\total_repo C:\test_repo total_repo에서 $ git remote add test ../test_repo $ git fetch test $ git merge --allow-unrelated-histories test/master //ex)master, dev, 줄2에 뜬 branch $ git remote remove test $ git add . //? $ git commit -m "Merge server project into original-project" //? $ git push yh0921k.tistory.com/31 [Git] 여러 저장소를 단일 저장소로 병합하기(합치기) 따로 관리하던 ..
마지막 커밋 수정 git commit --amend -m "수정할 내용" git push -f
Windows는 node 페이지에서 새 버전 다운받으면 됨. Node.js https://nodejs.org/ko/ 에서 LTS 다운로드 후 설치 Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org npm install -g n 시 오류 발생 관련 더보기 >node -v >npm cache clean -f npm WARN using --force I sure hope you know what you are doing. >npm install -g n npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for n@6.5.1: want..
github에서 새로운 repository 생성 내용 작성 https://www.gitignore.io/ gitignore.io Create useful .gitignore files for your project www.gitignore.io (ex. eclipse) 해당 폴더에서 실행 더보기 $ git status $ git init $ git add . add 취소 더보기 $ git reset $ git commit -m "메세지" commit 옵션 더보기 $ git log $ git commit $ git commit -a $ git commit -am "메세지" $ git remote add origin https://github.com/계정/리포지토리.git 더보기 $ git remote -v..