• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

My Monkey Do

A Log of Coding Solutions

  • Home
  • Web Hosts
  • Tools
  • About

git move files

May 11, 2012 by Webhead

Problem

I added and pushed a bunch of files into my repository, but now I need to put it into a subfolder.

 

Solution

Git is smart and will find the files you moved.  Do the following:

$ mkdir newFolder
$ mv oldFolder newFolder
$ git rm -r oldFolder
$ git add newFolder

source:  http://stackoverflow.com/questions/3900805/git-command-to-move-a-folder-inside-another
keywords: git move files to another folder

Filed Under: Tools Tagged With: git

Primary Sidebar

Topics

apache apple block editor chrome cms css debug eCommerce embed firebug firefox git gmail goDaddy google hosting htaccess html html 5 IE crap image iPad iPhone javascript jquery linux localization mac os x ms sql mysql open source optimize php php 5.3 responsive rest api seo svg tinymce woocommerce wordpress wpengine xss yii youtube




Categories

  • Coding
  • Off the Shelf
  • Plugins
  • Random Thoughts
  • Server Stuff
  • Tools