Azure Devops Migrate from TFVC to Git - azure-devops

I try to migrate from tfvc to git like the picture1.
but nothing comes into git repository like the picture2.

We can reproduce this issue and we have reported this issue, you could refer to this ticket to get the latest news.
As a workaround, we could migrate the TFVC repo to Git via git cmd.
let’s follow the migration guide and execute the clone command:
git tfs clone {TFVC repo URL}
Get all branches:
git tfs branch –init --all
For each branch, run these commands:
git checkout branch
git log -1
git tfs pull -c=changesetNumber
Create a new repo in the azure devops and get the repo URL. Then setup the git repository upstream:
git remote add origin {New repo URL}
Finally you push all your local changes to the Remote.
git push origin -u -all
We could refer to MIGRATING FROM TFVC TO GIT and Migrate From TFVC To Git for more details.
Update1
According to the latest news: A fix for this issue has been prepared. We’ll update you when it’s available.

Related

Need to sync branch and tags between Github repo to Azure devops repo

I am moving from Github to Azure devops repo.
Now I already have a repo in Azure devops, but is old, and now I need to sync it from Github.
Maybe there is some branches that is not in Azure devops, also Tags.
I am using:
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done
git push https://xxxx#dev.azure.com/_git/reponame -u --all --force
But I am not sure that this command move all branch to Azure devops.
Also I don't see new Tags that's been created after I imported the entire Github repo.
How do I also sync the tags?
I needed to add this line and will transfer all tags to the new repo.
git push https://xxxx#dev.azure.com/_git/reponame -u --tags --force

How to open a pull request on github for an improvement in a bitbucket fork?

I cloned a github repository into our Bitbucket account. Similar to https://gist.github.com/sangeeths/9467061.
I fixed a bug in my repository located in bitbucket. I'd like to open a pull request on the original github repository that fixes the bug.
If my fork were located on github, I would simply follow these instructions, but since my fork is on bitbucket, I don't know where to start.
How can I open a pull request from my bitbucket repo to the original github repo ?
You can:
clone the original GitHub repository to a different folder
add your local BitBucket repo as a remote
fetch your fix branch (make sure you fix is done in its own branch, not master)
create a PR using the cli/cli GitHub command line interface gh pr create
That is:
git clone https://github.com/original/repo
cd repo
git remote add bb ../yourLocalBitbucket/repo
git fetch bb
git checkout bb/fix
gh pr create
The gh pr create command will do the work for you:
When the current branch isn’t fully pushed to a git remote, a prompt will ask where to push the branch and offer an option to fork the base repository.

Is it possible to merge changes from old repository to a duplicated repository?

In GitHub, Is it possible to merge changes from old repository to a duplicated repository? If it is possible, what are the steps involved?
These are the steps I'd follow to duplicate a repository.
Yes, but you should do it local.
So
Clone you repo locally. git clone <url>
Added a second remote for the old repository git remote add old <url>
Checkout a branch from your second remote and push it to the first.
E.g. something like this:
git fetch old
git checkout old/mybranch
git checkout -b newname
git push origin -u

How to keep updating azure repo from Git Hub?

I have my repo in GitHub. When I first use Azure repo, I clone that GitHub repo in to Azure repo.
Now, I make some changes in my local machine using git. After that I commit a code in git master branch. Then I did git push to my GitHub master branch. I can see a commit id with comment on GitHub. But some how I am not able to see a that commit in Azure Repo.
Does anyone have any suggestions?
My repo is a private repo, so I sync it to Azure Repo with my credentials.

How to locally update repository from github

If I cloned a github repository with the follwoing command:
git clone - git://github.com/user/project.git
And then the developer commits further changes (to the main branch) how can I get the latest changes locally?
git pull
Also check out this resoruce for a visual representation of the git commands.
A git pull will retrieve the changes from the main branch to your local repository