명령어 모음

이혜원·2023년 2월 3일
  • 뒤로가기 : cd ..

  • 들어가기 : ls

  • npm i

  • npm install

sequelize로 db생성하고 migrate하는 명령어

  • npx sequelize db: create
  • npx sequelize db: migrate

git branch 뭐가 있는지 어디 checkout 되어 있는지 보여줌

  • git branch

nodemon install 명령어:

  • npm install --global nodemon
  • nodemon app.js

prettify 작동시키는 명령어:

  • npm run prettify

git clone 후 바로 하면 repository에 있는 'dev'라는 branch 를 불러와줌:

  • git checkout -b dev remotes/origin/dev

연결된 repository에 feature/admin이란 branch 가 없고
local에만 있을 때 연결하면서 push:

  • git push --set-upstream origin feature/admin

local에서 dev빼고 다 지워주는 명령어 (dev로 먼저 가서 실행해야됨)

  • git branch | grep -v "dev" | xargs git branch -D

npm i 없이 dev만 가져오기

1. 이것만 빼고 다 지우기
2.
2-1. git init하고
2-2. git remote add origin [git hub repository code]
2-3.local 에서 branch 만들어주기
2-4.git pull origin dev<-- example

0개의 댓글