git - clover3/Roland GitHub Wiki

add only modified files

  • git add -u .

moving to another branch

  • git checkout -- [수정된 파일명]
  • git branch branch_name
  • git checkout branch_name

Change remote branch that current local branch tracking

  • git branch --set-upstream-to=origin/branch

이건 강제로 바꿔주는거라서 push 할떄 이름이 다르다고 경고하면서 push 에서 리모트 이름을 다시 지정해줘야 함.