目的:Create a new commit
git 語法:git commit -m "message"
Team Explorer 畫面:
目的:Amend the last commit with staged changes
git 語法:git commit --amend -m "Updated message"
Team Explorer 畫面:
目的:Stage all file changes
git 語法:git add --all
Team Explorer 畫面:
目的:Stage a specific file change
git 語法:git add filename
Team Explorer 畫面:
目的:Review unstaged changes
git 語法:git status --untracked
Team Explorer 畫面:
目的:Delete a file
git 語法:
- git rm filename
- git commit -m "Deleted filename"
目的:Move a file
git 語法:
- git mv filename
- git commit -m "Moved filename"
目的:Tag a commit
git 語法:git tag -a tagname -m "description"
Team Explorer 畫面:
![[VSTS] Git command reference - Commits-01](https://c1.staticflickr.com/1/511/32585561472_a91ea6f4ea.jpg)
![[VSTS] Git command reference - Commits-02](https://c1.staticflickr.com/1/743/32585561422_1865d0831b.jpg)
![[VSTS] Git command reference - Commits-03](https://c1.staticflickr.com/1/402/32698492396_48a808c454.jpg)
![[VSTS] Git command reference - Commits-04](https://c1.staticflickr.com/1/729/32585561272_cc58781105_z.jpg)
![[VSTS] Git command reference - Commits-05](https://c1.staticflickr.com/1/403/32585561222_8732416eb3.jpg)
![[VSTS] Git command reference - Commits-061](https://c1.staticflickr.com/1/342/32585561112_258d1a7b2f_b.jpg)
![[VSTS] Git command reference - Commits-062](https://c1.staticflickr.com/1/699/32585561892_6ccd42b11f.jpg)
![[VSTS] Git command reference - Commits-071](https://c1.staticflickr.com/1/652/32585561812_95bdb26cbf.jpg)
![[VSTS] Git command reference - Commits-072](https://c1.staticflickr.com/1/655/32585561732_6e56702186.jpg)
![[VSTS] Git command reference - Commits-081](https://c1.staticflickr.com/1/776/32585561652_9585a42ef6.jpg)
![[VSTS] Git command reference - Commits-082](https://c1.staticflickr.com/1/735/32585561572_d95640d810_z.jpg)
沒有留言:
張貼留言