New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkout a particular commit given a TFS changeset #563
Comments
I assume you mean |
Most of the time I'd prefer to not re-implement every piece of git porcelain, but I think this has a pretty well written use-case. If someone implemented it, I'd 👍 it. |
For now I am simulating this functionality by adding the following function to my .bashrc file. It takes a tfs changeset number and checks it out to a new branch. Now I can just do
|
git tfs checkout changesetId [-b=branch_name] ex: git-tfs checkout 2365 git-tfs checkout 2365 -b=bugfix_2365 Solve git-tfs#563
git tfs checkout changesetId [-b=branch_name] ex: git-tfs checkout 2365 git-tfs checkout 2365 -b=bugfix_2365 Solve git-tfs#563
git tfs checkout changesetId [-b=branch_name] ex: git-tfs checkout 2365 git-tfs checkout 2365 -b=bugfix_2365 Solve git-tfs#563
If a PR has been merged, then this issue should be closed. I've used the git cherry-pick $(git tfind 21792) # tfind is an alias for tfs checkout which resulted in checking out the git commit associated with TFS C21792 and merging it into the current branch a'la cherry picking. Super useful; so thanks for the contribution! |
Sounds good to me. Close it. |
I am not sure if this feature already exists. I haven't been able to find it in the docs.
It would be nice if there was a parameter option that let us use the TFS changeset to check out our commits rather than the git SHA number.
For example, lets say someone reopens a bug that was supposedly fixed in change set 120006. It would be good if I do something like
git tfs --changeset=12006
rather than doinggit log --grep=C120006
to find the commit and thengit checkout 01abe3
The text was updated successfully, but these errors were encountered: