, replacing To add an existing solution to GitHub from Visual Studio 2018, you can follow these steps: After completing these steps, your existing solution should be added to the GitHub repository and you can continue to work on it from Visual Studio, committing and pushing changes as needed. Publishing an existing project to GitHub? To publish an existing project to GitHub, you can follow these steps: 1. Create a new repository on GitHub by clicking the "New repository" button on your GitHub dashboard. 2. Give your repository a name and, if you want, a description. Choose whether you want it to be public or private. 3. Click the "Create repository" button to create the new repository. 4. Open the command line or terminal on your local machine and navigate to the root directory of your project. 5. Initialize a new Git repository by running the command 6. Add all files in your project to the Git repository by running the command 7. Commit the changes by running the command 8. Copy the HTTPS or SSH URL of your new GitHub repository. 9. Add the remote repository to your local Git repository by running the command 10 . Push your local repository to the remote repository by running the command After completing these steps, your existing project should be published to your new GitHub repository. You can continue to work on the project and use Git to commit and push changes to the remote repository.How do I add an existing Solution to GitHub from Visual Studio 2018?
Publishing an existing project to GitHub
git init
.git add .
.git commit -m "Initial commit"
.git remote add origin <URL>
, replacing <URL>
with the URL you copied in the previous step.git push -u origin master
.
Tags:
Share: