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:

  1. just move files if aren't modifications other files

    $ git mv dev-test/files other-dir $ git commit -a 
  2. if test files modifications other files, want diff of 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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -