I have a new editor that I need to replace.
If in a branch I have some called EDITOR (folder with subfolders and files).
How do I replace the folder EDITOR with the new EDITOR - keeping same names.
I only want to commit and change this folder (and not other changes to other files).
I just want to force the new folder changes - hopefully al done at once.
Hello Felipe, I am not sure I fully understand the situation. At first, I thought you might want to just rename the directory. This sounds like you want to replace the folder and its contents. I suggest the following:
git add --all git commit -am "<commit message>"
Hope this helps
Hi Felipe! If my understanding is correct, you want to replace the existing folder with a new one, keeping the same old files inside the new one. Assuming that's what you want, it won't be possible to do that with Git, as that's not how Git works. I'm also assuming that you're using Git as it's the more widespread option and you didn't specify otherwise.
Git doesn't know about folders, in Git you can not have an empty folder for example. What Git "sees" is the file, if you change a file from one folder to another, Git will see that the name of the file was changed from oldfolder/file.txt to newfolder/file.txt. For Git, renaming a folder is to rename the path of every individual file inside it.
Having said that, this doesn't look like a Bitbucket question so I've moved it to the Git category where you'll be able to receive further explanations if you need them :)
Hope that helps!
Hello from my sixty-eighth city in a long-term RV trip I started in 2015! I've traveled all over the US staying in different cities and states for just a few days up to many months. This week I...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events