Git TFS
-
Upload
richard-banks -
Category
Technology
-
view
6.491 -
download
1
description
Transcript of Git TFS
![Page 1: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/1.jpg)
git-tfs
Alternate Working Title:“Make love not war”
https://github.com/git-tfs
![Page 2: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/2.jpg)
how to get it?
![Page 3: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/3.jpg)
why?
Q: local workspaces in TFS11 means this is obsolete, right?A: nope
local branchinglocal commitslocal historylocal everythinggit == serverless source controlgit > tfs, especially for offline development & distributed work
![Page 5: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/5.jpg)
get started: what’s in the repo?
![Page 6: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/6.jpg)
local history
![Page 7: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/7.jpg)
making a change…
Cue “vim, WTF?!” comments
![Page 8: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/8.jpg)
…and committing it
![Page 9: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/9.jpg)
one more time, for fun
![Page 10: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/10.jpg)
check local history
![Page 11: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/11.jpg)
now push to tfs
![Page 12: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/12.jpg)
finish commit
![Page 13: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/13.jpg)
pulling changes
![Page 14: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/14.jpg)
push git commits separately
![Page 15: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/15.jpg)
gated checkins?
• git checkout –b newBranch• git commit –a –m “xx”• git tfs pull• git tfs ct [and wait for build to pass]• git checkout master• git tfs pull
![Page 16: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/16.jpg)
work item related?
![Page 17: Git TFS](https://reader036.fdocuments.us/reader036/viewer/2022062614/546e03f1af7959f83e8b5a35/html5/thumbnails/17.jpg)