Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restart Git repo Xcode 4.3.2

For different changes I made in my project, I need to restart Git repo and start with a new fresh version with the current project. How can I achieve this?

Many thanks

like image 555
theomen Avatar asked Jun 19 '26 22:06

theomen


1 Answers

fire up your terminal: go to project

cd myPath/MyProject

delete the current repo on your disk - your git repo = RIP

rm -Rf .git

init a new repo

git init

add your project to the new git repo

git add .

commit

git commit -a -m "init Project XY"

check if the repo is o.k

git status
like image 189
theforce Avatar answered Jun 21 '26 19:06

theforce



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!