...
Tip |
---|
If you don't see the branch you want to clone, then it probably hasn't been configured as a branch in TFS. You can do this through Visual Studio by right-clicking on the "project" in Source Control Explorer and converting it to a branch: |
8.run following command to clone only latest code. For example: MPDIS-SDDPM (You might need to set up userName and Email for git before clone: git config – global user.name "YourName" ; git config --global user.email "xx.xx@tc.gc.ca")
...
Warning |
---|
If your codebase in TFS has sensitive information (eg. passwords), do not include them in your Azure Devops repository. Remove them from the codebase, check the changed files back into TFS and then be sure to clone the latest only (step #8). If you clone all history (as in step #9), the passwords will still be available in the repo history. If you really need to keep the history then you'll have to do something like: How-to Remove Sensitive Info from a GIT \ Azure DevOps respository. |
8.run following command to clone only latest code. For example: MPDIS-SDDPM (You might need to set up userName and Email for git before clone: git config – global user.name "YourName" ; git config --global user.email "xx.xx@tc.gc.ca")
git tfs clone http://tfsprod:8080/tfs/Marine%20Safety/ $/MPDIS-SDDPM_Scrum/DEVELOPMENT/MPDIS-SDDPM c:\tmp\migration\mpdis
9. or Run following command to clone all history from TFS for all branches. For example: MPDIS-SDDPM
...