Click here to Skip to main content
16,022,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I set up a github repository to match the project I am working on in Visual Studio 2022. I did something wrong and only the project file exists. I followed a tutorial. But the tutorial was disappointing and the instruction was to drag the content of my project and I suppose I only uploaded the project file.

That was then. This is now. So far this is what I have done. In Visual studio I opened a command window by click on CTRL + `. THen using the.git file and its location from my github repository, I typed at the command line:

 Copyright (c) 2022 Microsoft Corporation
**********************************************************************
PS C:\source\repos\SharePointListCreation> git clone https://github.com/Wm-M-Thompson/SharePointListCreation.git
Cloning into 'SharePointListCreation'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (3/3), done.
PS C:\source\repos\SharePointListCreation>


Now what? What are the next steps.

What I have tried:

I have found my .git file and location on ghthub.com and used this to make a git clone in the command window in visual studio. After this, I do not know what to do.
Posted
Updated 27-Sep-24 17:07pm
v2

1 solution

Take a look at the history of your commits on GitHub (under the big green "Code" button), and see if you can find anything there.
If so you might be able to browse the repository at that point in time, and in your local working copy use:
BAT
git reset --hard [commitID]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900