you dont need to reinstall you operating system jsut to get rid of git. You can delete any repo git and start anew by deleting the .git file in the repos root directory.
create a git config file .git in the current working directory
git init
connect this repo to the online "empty" repo if starting new
git remote add origin [email protected]:USER/REPONAME.git
add everything in the current directory to the staging area. This would be your working branch before changes
git add .
make a comment (required)
git commit -m "first commit"
push staged changes
git push -u origin master
At this point what is in your directory is on the website. Lets assume this is working and in good shape. Now when you make a change and it could break things (dev)... Instead of doing the same thing as we just did and pushing the change to your master branch we you make a dev branch.
create a new branch called "dev" and switch to it
git checkout -b dev
make your changes to your code as needed
add your changed files
git add .
make a comment
git commit -m "made a change"
push staged changes to branch dev
git push -u origin dev
at which you should have 2 branches, master and dev on site. The git repo will show the master branch while you have a dev branch that is X commits further ahead but could be unstable.
At some point the dev will be stable and you can merge it into master.
switch to master branch
git branch master
merge dev into master
git merge dev
push it to the site
git push -u origin master