i have git repository following folder structure:
allprojectfiles --otherfolders --source ----projectname ------projectname ---------git initilalized here ---------otherfolders ---------workingonthesefiles(bound remote)
can restructure project have git track allprojectfiles folder without losing history?
git tracks trees , blobs, not folders
the folder-tracking git in tree commits. so, in general case, can move folders around freely , git write new tree repository.
i recommend using git mv
stage these directory moves in otherwise clean working tree. if don't have file-level changes staged commit, git history correctly treat new structure move/rename, rather add/delete operation.
Comments
Post a Comment