I tried it for 2 cases
Using github as repository
Fresh deployment using codepipeline to desired location multiple time : files are overwritten automatica