Let's say I have two existing folders that I want to put under Git
source control. One is called CurrentProduction
and the other CurrentDevelopment
. Would the following steps be correct?
- Create a new folder called
MyProject
git init
- Move the
CurrentProduction
contents toMyProject
git add .
git commit -m 'initial master commit'
git checkout -b develop
- Delete all files in
MyProject
(except for the .git folder of course) - Move the
CurrentDevelopment
contents toMyProject
git add -A
git commit -m 'initial develop commit'
Or is there a "different" way?