Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
299 views
in Technique[技术] by (71.8m points)

git - How should I properly clone github repo in VS?

I cloned boilerplate repo in Visual Studio, and I need to use it to create another app and commit changes to my own repo on my GitHub profile, but in Team Explorer I see the link of original repo, not my repo. What should I do?

UPD:

enter image description here

Here, instead of based-ghost's repo, I need my profile with different empty repo. I used stock "Clone repository" function in Visual Studio 2019 Community.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you are not very used to Visual Studio i suggest using git Bash for commit and code-push.

If you need to push your project to Github ,create a Repository first and copy its url and then clone it to your machine by git clone This can be done either in git bash or Visual studio integrated git

Then copy your project contents into that cloned git repository then

git add .
git commit -m "<your message>"
git push origin <branch name>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...