I have a boilerplate project named 'XYZ' structured like this:
-XYZ.Domain
-XYZ.CrossCutting
-XYZ.Application
-XYZ.Backend
-XYZ.Infrastructure
I want to do these steps:
Rename everything to ABC:
-ABC.Domain -ABC.CrossCutting -ABC.Application -ABC.Backend -ABC.Infrastructure
Add it to a git repository
Push everything.
How can I accomplish this using visual studio 2019?
From the solution explorer select your solution and pick Create Git Repository (requires the new Git Tools to be enabled):
Fill in the wizard that pops up:
And you have a reporitory. If you don't have a .gitignore
file yet, I'd pick "local repo", as using one of the other options will immediately commit & push. Then add the ignore file and exclude any items you don't wish to push before pushing to a git service:
You can do your renames before or after. Which would be a separate and unrelated question to how to initialize the git repo.
Renaming the project files can easily be done in the solution explorer. Renaming the folder containing each project is trickier. You need:
Then, it will ask you to Push to a Git service.
Follow the prompts to sign in to the service of your choice and choose the project/repo.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.