locked
Mirror TFS changes to GitHub RRS feed

Answers

  • We cloned the repository from Github. From now on, all code will be done from TF-Git repository. Then, once a developer makes changes to code on TF-Git, commits those to TF-Git repository, we want to make it easier to push the changes over to Github without having to use the cmd line. 

    Unless I missed something when testing this from VS yesterday, then going to 'Changes' -> 'Commit' ->'Commit Push' -- did not push the changes to Github after it checked in the changes.

    Thursday, June 25, 2015 2:52 PM

All replies

  • Hi BossHogg20,

    Please clarify whether you want to find an alternative way for pushing the changes in TFS local git repository to remote git repository which hosted in GitHub.

    After publish the branch of TFS lcoal git repository to GitHub, we can push the commits to GitHub via Team Explorer.

    If you created a new repository on Github without code, you can also import the code on GitHub page or use the Git command below to create a new repository:

    git init
    git add README.md
    git commit -m "first commit"
    git remote add origin https://github.com/XXXX/XX.git
    git push -u origin master

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Thursday, June 25, 2015 8:59 AM
    Moderator
  • We cloned the repository from Github. From now on, all code will be done from TF-Git repository. Then, once a developer makes changes to code on TF-Git, commits those to TF-Git repository, we want to make it easier to push the changes over to Github without having to use the cmd line. 

    Unless I missed something when testing this from VS yesterday, then going to 'Changes' -> 'Commit' ->'Commit Push' -- did not push the changes to Github after it checked in the changes.

    Thursday, June 25, 2015 2:52 PM
  • I've figured it out...After the commit to TF-Git, you still have to go to 'Outgoing Commits' and use 'Push To' while selecting the destination on Github.

    What is the point of having options for 'Changes' -> 'Commit' ->
    'Commit'
    'Commit Push' 
    'Commit Sync'

    Seems like those 3 options all do the same thing which is check-in your code.

    Thursday, June 25, 2015 9:42 PM
  • Hi BossHogg20,

    I'm glad you get it done. In Changes, you can commit the changes you have made to the local git repository which is in local. The Commit shows the commits that you have made(by click commit button in Changes tab).

    The push link can push the outgoing commits to remote git repository which host in GitHub. And the Sync will pull the changes to local, and also push the outgoing commits to remote git repository.

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, June 26, 2015 8:56 AM
    Moderator
  • The commit-push is not pushing the changes to Git-Hub as it should though. I have to go to 'Outgoing Commits' to get it to work. Not sure if this is a bug, or I am supposed to install some Git Hooks.
    Friday, June 26, 2015 1:31 PM
  • Hi BossHogg20,

    If you have outgoing commits, you need go to "Outgoing Commits" tab and click push link to push the commits to remote git repository.

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, June 30, 2015 7:45 AM
    Moderator