checkout branch with current changes code example Example: create branch from existing branch $ git checkout -b myFeature dev