目的: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 操作畫面:
![[VSTS] Git command reference-repos-01-git init](https://c1.staticflickr.com/1/682/31854323043_15fd3fd646.jpg)
![[VSTS] Git command reference-repos-02](https://c1.staticflickr.com/1/602/32456807212_42566fe301.jpg)
![[VSTS] Git command reference-repos-03](https://c1.staticflickr.com/1/388/32456807162_15def60a95.jpg)
![[VSTS] Git command reference-repos-04](https://c1.staticflickr.com/1/732/32456807072_a199b27209_z.jpg)
![[VSTS] Git command reference-repos-05](https://c1.staticflickr.com/1/635/32456807032_8676afa7be.jpg)
![[VSTS] Git command reference-repos-06](https://c1.staticflickr.com/1/750/32456806982_8ec83827de.jpg)
![[VSTS] Git command reference-repos-07](https://c1.staticflickr.com/1/718/32618077845_3d8374d522.jpg)
![[VSTS] Git command reference-repos-08](https://c1.staticflickr.com/1/451/32495301061_bfc4b91769_z.jpg)
![[VSTS] Git command reference-repos-09](https://c1.staticflickr.com/1/509/32495300981_e08edc2390_z.jpg)
![[VSTS] Git command reference-repos-10](https://c1.staticflickr.com/1/462/32495300891_3c664baa66_z.jpg)
沒有留言:
張貼留言