How do I make git move its tracking from the current directory, to that of a directory within the current directory. (What it is now)
/current_dir/
/dir_i_want_to_track/
...
...
I want to track dir_i_want_to_track
but right now its tracking current_dir
(What I want)
/dir_i_want_to_track/
...
...
Edit for clarification @AD7six
These directories are within a repo. I started initializing the repo at /current_dir
, and so git has been tracking all changes within /current_dir/
. However, moving forward I want git to track all changes one directory deeper at /dir_i_want_to_track/
, ignoring the other directories within /current_dir/
., so that when I go onto the repo it only shows
/dir_i_want_to_track/
...
and not the other directories.
(I'd also like to keep a history of all previous commits)