C
C#2y ago
Grin

✅ Is it possible to create a new repository after pulling some code?

I recently edited a program I made and want to create an entirely new repository with a new name. But the only options I seem to have are to commit all. How can I create a new repository without altering the old repository I had?
12 Replies
Grin
GrinOP2y ago
this is for visual studio I should've tagged as beginner
Angius
Angius2y ago
Delete the .git folder
mtreit
mtreit2y ago
Are you sure you want an entirely new repo and not a branch?
Grin
GrinOP2y ago
I'm not sure what a branch is, but I'm trying to keep track of my progress in learning by attaching the name to the chapter I'm at in a book. If I attached it to this old chapter I think it would confuse me when checking out my progress and some of the projects I don't want to associate a chapter at all, this one was associated so I removed it since I want to improve upon it for a long time
Accord
Accord2y ago
Closed!
Tvde1
Tvde12y ago
or you could make a commit every time git is made for tracking changes
Grin
GrinOP2y ago
well the name of this rep was ch6_something but I wanted to remove the ch6 so I could continue working on it for awhile I know that isn't necessary but
Tvde1
Tvde12y ago
I would just continue working in one repo if I were you, and commit often
Grin
GrinOP2y ago
Thats the plan now with the new repo I've created I just got rid of the ch6 so I know this is a project I want to work on long time
Tvde1
Tvde12y ago
good luck! ^^
Anton
Anton2y ago
you can just create a new repo and then change the remote origin url, and then push all your local history there
Accord
Accord2y ago
Closed!
Want results from more Discord servers?
Add your server