I am new to git and now facing a git repo 'housekeeping' challenge after deciding to clean up the code structure. There are two dimensions to my challenge:
Need to rename suboptimally titled REPO, and some SUBFOLDERS and FILES to a clean python standard notation (from using dashes to shorter names with underscores etc.).
Split out test code into .py files saved in a dedicated \tests folder.
I discovered that doing the above code and file structure clean up in git is hard with preserving the change history. The other answers on the topic appear to cover a part of this effort. I attempted renaming files via git online but, while the history is formally kept, it only stores the bulk deletion act of a big chunk of test code that has been moved to \test folder. The newly created \tests\basic_test.py and \tests\advanced_test.py files are apparently treated as new by git i.e. have zero prior history of changes.
In short, I need to split out the test code into new files stored in a new \tests subfolder and then rename the root code folder finishing up by renaming the repo. Is this possible to be done without use of git command line? If not I guess it's my time to learn it and I appreciate the guidance to implementing exactly what I need above to jump in the water but not get bogged down in the git command line tutorials i.e. effect the change I need with minimum theory acquisition.
Thanks a lot for sharing the wisdom!
- mt code structure 1.0
\money-tracker # local dir and git repo name
money_tracker_v01_9.4
- mt code structure 2.0
\money_tracker # app root_dir (local dir and git repo name)
\mt # code_dir (shared code base named after main mod)
mt.py
\tests
test_basic.py
test_advanced.py
\data_in (private, local)
coa.csv
trxn_data_x.csv
\data_out (private, local)
cf_report_x.txt
* each mt_dir may contain aux files (f.e. __init__.py, context.py)