git-tfs

How to append a git repository on top of another

感情迁移 提交于 2019-12-08 12:48:02
问题 I am in the process of converting a project from TFS to git, and I want to keep all history. The problem is that the TFS project was moved in TFS one year ago. Using git-tfs I can convert both locations to git, but now I have two git repositories: A and B. I have managed to get both A and B into the same repository as different branches. Would it be possible to change the parent of first commit in B to the last commit in A? Branch A: a -> b -> c Branch B: d -> e -> f I want to have a -> b ->

How can I clean up a broken history with git-tfs

感情迁移 提交于 2019-12-07 22:30:31
问题 I'm not sure how I managed to get into this state(*), but I've got some commits in my tfs/default remote branch that don't exist in TFS, so I want to get rid of them. So my history looks like this: A--B--C--D tfs/default ... but commits B and C aren't actually changesets in TFS. As a result, when I checkout tfs/default I am out of sync with TFS because of commits B and C. Not good. I figured I could fix it if I could somehow reset the tfs/default remote to A and do another "git tfs fetch" to

git - setting path variable

扶醉桌前 提交于 2019-12-07 06:04:29
问题 When I run the following command to change my path variable in the git bash - it works. After I've run a few git-tfs commands it reverts back to the original setup. Is it possible to explain why? $ PATH=$PATH: my git-tfs path goes here To clarify, it works at first. But then the git-tfs commands stop working and it's because the folder it lives in no longer appears in the path. EDIT: When I close the bash the changes are not saved. 回答1: Add it your .bash_profile so that it will be saved. So

How can I clean up a broken history with git-tfs

喜夏-厌秋 提交于 2019-12-06 14:24:41
I'm not sure how I managed to get into this state(*), but I've got some commits in my tfs/default remote branch that don't exist in TFS, so I want to get rid of them. So my history looks like this: A--B--C--D tfs/default ... but commits B and C aren't actually changesets in TFS. As a result, when I checkout tfs/default I am out of sync with TFS because of commits B and C. Not good. I figured I could fix it if I could somehow reset the tfs/default remote to A and do another "git tfs fetch" to end up with the actual history: A--D tfs/default but I'm not sure how to do that? *) If it makes any

How to run or install tool on hosted agent in VSTS

人走茶凉 提交于 2019-12-06 07:13:52
问题 I want to run cmd as an administrator on VSTS. Actaully I am trying to install git-tfs with chocolatey tool manager on VSTS hosted agent, So I am running the following command on VSTS command line task: @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" or, Alternatively

git - setting path variable

狂风中的少年 提交于 2019-12-05 10:50:26
When I run the following command to change my path variable in the git bash - it works. After I've run a few git-tfs commands it reverts back to the original setup. Is it possible to explain why? $ PATH=$PATH: my git-tfs path goes here To clarify, it works at first. But then the git-tfs commands stop working and it's because the folder it lives in no longer appears in the path. EDIT: When I close the bash the changes are not saved. manojlds Add it your .bash_profile so that it will be saved. So the contents will be something like: PATH=$PATH:my git-tfs path goes here export PATH 来源: https:/

One-to-one mapping of git commits to TFS changesets using git-tfs rcheckin

人走茶凉 提交于 2019-12-05 01:38:12
问题 The Context We have a git repository with a release branch. We have a TFS repo (currently empty). My task is to mirror the release branch of the git repo into TFS so that every commit in git maps to a changeset in TFS. All the developers only commit to git and (lets assume) are unaware of TFS. Reading the documentation for rcheckin and the answer to this related issue makes me believe that rcheckin is capable of doing that. The Problem All the commits in git are squashed into a single

Connecting to a TFS server closes a Git solution

僤鯓⒐⒋嵵緔 提交于 2019-12-04 11:56:19
问题 I'm using Visual Studio 2013 with the new built-in Git support. Our project is managed in TFS 2010, but because of inertia/stubbornness, I use git-tfs for source control. I still use the TFS issue tracker etc. In VS2012, this worked fine - VS just saw the solution as not being under any supported source control, and let me work with TFS work items just fine. In VS2013 however, the project is detected as being managed under Git. This makes VS's TFS integration pretty much unavailable. This

How do I remove a package installed via Chocolatey?

﹥>﹥吖頭↗ 提交于 2019-12-03 22:26:28
I installed gittfs using cinst gittfs How do I now remove the gittfs package? xuhdev Use cuninst packagename See Uninstall Command for details. Matt UPDATE: as per @ferventcoder's comment, Chocolately has added support for uninstalling packages since this question was first asked and answered. The syntax is chocolatey uninstall packageName or just cuninst packageName . You can optionally uninstall a specific version: cuninst packageName -version 1.0.1234 See Rob's link for the latest, including known limitations: https://chocolatey.org/docs/commands-uninstall 来源: https://stackoverflow.com

One-to-one mapping of git commits to TFS changesets using git-tfs rcheckin

a 夏天 提交于 2019-12-03 15:29:18
The Context We have a git repository with a release branch. We have a TFS repo (currently empty). My task is to mirror the release branch of the git repo into TFS so that every commit in git maps to a changeset in TFS. All the developers only commit to git and (lets assume) are unaware of TFS. Reading the documentation for rcheckin and the answer to this related issue makes me believe that rcheckin is capable of doing that. The Problem All the commits in git are squashed into a single changeset. Reproduction sequence: git tfs clone http://tfs:8080 $/tfsrepo cd tfsrepo git remote add github git