Move git repository -


i have initialized , commited files within working directory in current structure

-project_name --- sofware_directory ----- .git ----- some_directory -------- working_directory 

i realizing don't need have software_directory or some_directory in repository. have not yet pushed repository. want structure this

-project_name --- .git --- working_directory_b 

how move .git 1 level , rearrange other directories accordingly? tried move .git

git mv .git ../  

but receive error '..' outside repository.

follow these steps:

cd project_name  # these file system actions mv software_directory/* . mv software_directory/.git .  # directory needs moved git git mv some_directory/working_directory/ . git commit -m 'changed dir layout'  # file system action again rm -rf some_directory 

i assume have files have been committed stored in working_directory, if there files directly in some_directory, need git mv them too.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

django - CSRF verification failed. Request aborted. CSRF cookie not set -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -