星期四, 2月 02, 2017

[VSTS] Git command reference - Repos

了解該篇文章 Git command reference 的 Repos 說明並記錄

目的:Create a repo in a new folder
git 語法:git init foldername
Team Explorer 畫面:

[VSTS] Git command reference-repos-01-git init

目的:Create a repo with code in an existing folder
git 語法:
  1. git init foldername
  2. git add --all
  3. git commit -m "Initial commit"
Team Explorer 畫面:

[VSTS] Git command reference-repos-02

目的:Create a repo from an existing Visual Studio solution
git 語法:
  1. git init foldername
  2. cd foldername
  3. git add --all
  4. git commit -m "Initial commit"
Team Explorer 畫面:

[VSTS] Git command reference-repos-03
目的:Create a new repo in your Team Project
git 語法:Not applicable
VSTS 操作畫面:

[VSTS] Git command reference-repos-04
目的:Clone a repo into a local folder
git 語法:git clone URL foldername
Team Explorer 畫面:

[VSTS] Git command reference-repos-05

目的:Clone a repo in your Team Project
git 語法:git clone URL foldername
Team Explorer 畫面:

[VSTS] Git command reference-repos-06

目的:Add an existing repo to Visual Studio
git 語法:Not applicable
Team Explorer 畫面:

[VSTS] Git command reference-repos-07

目的: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 檔案總管操作畫面:

[VSTS] Git command reference-repos-08

目的:Delete a local repo and all files
git 語法:Delete the folder containing your repo from your computer's filesystem
Windows 檔案總管操作畫面:

[VSTS] Git command reference-repos-09

目的:Delete a repo in your Team Project
git 語法:Not applicable
VSTS 操作畫面:

[VSTS] Git command reference-repos-10

沒有留言:

張貼留言