cd app vi Makefile vi main.c git add Makefile git commit -m "makefile fixed" git add mainc. git commit -m "skeleton added" git switch master 'master' 브랜치로 전환합니다
cd .. git checkout dev -- . (현 위치에 dev 를 체크아웃함) git add Makefile app/ git commit -m "feature added for dev branch"
$ git help checkout git checkout (-p|--patch) [<tree-ish>] [--] [<pathspec>...] This is similar to the previous mode, but lets you use the interactive interface to show the "diff" output and choose which hunks to use in the result. See below for the description of --patch option.