目的:Create a repo in a new folder
git 語法:git init foldername
Team Explorer 畫面:
目的:Create a repo with code in an existing folder
git 語法:
- git init foldername
- git add --all
- git commit -m "Initial commit"
Team Explorer 畫面:
目的:Create a repo from an existing Visual Studio solution
git 語法:
- git init foldername
- cd foldername
- git add --all
- git commit -m "Initial commit"
Team Explorer 畫面:
git 語法:Not applicable
VSTS 操作畫面:
目的:Clone a repo into a local folder
git 語法:git clone URL foldername
Team Explorer 畫面:
目的:Clone a repo in your Team Project
git 語法:git clone URL foldername
Team Explorer 畫面:
目的:Add an existing repo to Visual Studio
git 語法:Not applicable
Team Explorer 畫面:
目的:Delete the Git repo and history, but keep the current version of the files
git 語法:Delete the hidden .git folder created at the root of the repo
Windows 檔案總管操作畫面:
目的:Delete a local repo and all files
git 語法:Delete the folder containing your repo from your computer's filesystem
Windows 檔案總管操作畫面:
目的:Delete a repo in your Team Project
git 語法:Not applicable
VSTS 操作畫面:
沒有留言:
張貼留言