Title: WordPress, GIT, Renamed Plugin Dir + files &#8211; oops!
Last modified: November 17, 2022

---

# WordPress, GIT, Renamed Plugin Dir + files – oops!

 *  Resolved [ajaxStardust](https://wordpress.org/support/users/ajaxstardust/)
 * (@ajaxstardust)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wordpress-git-renamed-plugin-dir-files-oops/)
 * This post might not belong here, but I didn’t see anything covering this topic
   when I searched, so here goes…
 * I’ve been working on a custom plugin, and I’m getting close to being finished
   with it. I’ve been keeping a repo on Github to track my changes. I don’t know
   what I did, but somehow I managed to cause my code to stop working in my local
   repo. I tried `git reset --hard HEAD~1` (as I didn’t make note of the commit 
   hash prior). That didn’t help because i am somehow misplacing the commit that
   WAS working.
 * This isn’t the first time i’ve messed up using Github. I want to say “what is
   the point, if your code gets messed up!” (calm down, Geoffrey!).
 * I know I can DIFF at Github, but how would I go about that if, E.g. I changed
   the directory name of a plugin? and need to see code from files in directories
   with different names, from different commits?
    -  This topic was modified 3 years, 6 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
      Reason: Moved to Fixing WordPress, this is not an Developing with WordPress
      topic

Viewing 1 replies (of 1 total)

 *  Thread Starter [ajaxStardust](https://wordpress.org/support/users/ajaxstardust/)
 * (@ajaxstardust)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wordpress-git-renamed-plugin-dir-files-oops/#post-16208537)
 * NVM. My mistake: the code was not broken. Sorry about that. This is resolved.

Viewing 1 replies (of 1 total)

The topic ‘WordPress, GIT, Renamed Plugin Dir + files – oops!’ is closed to new 
replies.

## Tags

 * [git](https://wordpress.org/support/topic-tag/git/)
 * [plugin-development](https://wordpress.org/support/topic-tag/plugin-development/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ajaxStardust](https://wordpress.org/support/users/ajaxstardust/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/wordpress-git-renamed-plugin-dir-files-oops/#post-16208537)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
