Need to create a new Git repository? Then you'll need to learn how to use the git init command, because that's the only way to create a new Git repo. A Git repository is the heart and soul of Git.
Don’t worry, you can easily create a new Git branch without losing your local changes. Just use Git’s switch or checkout commands, and your new branch will be created with all of your current changes ...