commit - Moving committed git files to another directory -
i've been doing development work in 'dev-test' directory , committed files along way. need commit same files differently named directory , remove committed files in 'dev-test' directory. i'm not sure how retain working files.
my 'dev-test' repo local, have been doing pulls tracking 'master', have not merged code.
can use git reset before first commit of these files other developers have been merging 'master':
git reset --soft #commitid
your question still bit unclear, want 1 of these:
just move files if aren't modifications other files
$ git mv dev-test/files other-dir $ git commit -aif test files modifications other files, want
diffof work when started until , apply patch other directory.
in case wanted second, should have in fact done different thing start. if want test , later apply master, should create branch, work on , if satisfied, merge master branch. if fine, can merge master , have know it.
Comments
Post a Comment