본문 바로가기

IT

[git] 특정파일에 대한 추적 (ignore이 안먹히는 경우) 특정파일에 대한 추적을 피하고 싶은 경우 git rm --cached 특정경로/특정파일 더보기
[git] 작업 취소 특정파일의 작업 취소 작업 내용이 마음에 들지 않을때, 최근 커밋으로 모든 내용을 강제로 돌리고싶을때 $ git reset --hard # 모든 파일의 작업 내용을 버림 를 종종 하는편이다. 하지만 가끔 특정 파일만 'git reset --hard' 를 시키고 싶을때가있다. $ git checkout -- [Filename] # 특정 파일의 작업 내용을 버림 2. 특정파일 add 취소 실수로 커밋하지 않을 파일까지 add 한 경우, 즉 commit 대상에서 빼고 싶을때, 혹은 'git add .' 을 하고 그 중에 특정 파일 add 취소하고 싶을 때 $ git reset HEAD [Filename] # 특정 파일을 Unstage 상태로 변경 더보기
[git] git checkout 후 merge git checkout master ------------------------------------------------------------------ Your branch is ahead of 'origin/master' by 14 commits. (use "git push" to publish your local commits) ------------------------------------------------------------------ git diff git push git merge ansimpass 더보기
forever로 프로젝트 계속 띄우기 cd /opt/gopath/src/github.com/hyperledger/quasar-safepass git pull # forever 사용하는 프로젝트 리스트 forever list # forever 프로젝트 종료 forever stop 0 forever stop 1 # 프로젝트 포트 확인 및 포트 죽이기 sudo netstat -tnlp | grep 3000 sudo kill -9 # forever 프로젝트 실행 # forever start -c "수행할 명령어" 수행할 프로젝트 경로 forever start -c "quasar dev" . cd jwt-server forever start -c "./start.sh" . 로그 확인하기 forever list # logfile 경로 확인 후 info.. 더보기
[ubuntu] vscode 실행이 안됨. vm웨어를 리부트하고, vscode를 실행했더니, 아예 반응조차 하지 않는 이슈가 생겼었다. 다른 앱들도 실행했을때, 되지 않았는데 우여곡절끝에 아래의 명령어를 실행하고 햇더니, 정상 동작했다. https://askubuntu.com/questions/1238069/ubuntu-software-not-loading-properly If all images and software aren't loading in the software app delete the ubuntu-reviews.db file at ~/.local/share/gnome-software/ubuntu-reviews.db. It will be recreated automatically the next time you open Ubuntu.. 더보기
나노 에디터 https://swiftcoding.org/cli-and-nano-editor 더보기
Request param,query, body 의 차이점 Request 객체는 API를 컨트롤하기 위한 메소드를 셋 담고 있다. 그것이 각각 param query body 이다 각각의 설명하자면 1. req.param 주소에 포함된 변수를 담는다. 예를 들어 https://okky.com/post/12345 라는 주소가 있다면 12345를 담는다 2. req.query 주소 바깥, ? 이후의 변수를 담는다. 예를 들어 https://okky.com/post?q=Node.js 일 경우 Node.js를 담는다 3. req.body XML, JSON, Multi Form 등의 데이터를 담는다. 당연히 주소에선 확인할 수 없다. 사실상 3번은 햇갈릴 일이 없다. 1번과 2번을 주의하면 되겠다. 더보기
원격서버 vscode로 연결해서 작업하기 https://evols-atirev.tistory.com/28 더보기