Can you help me feel better about being forced to switch to github from TFS?

3    28 Jul 2016 22:27 by u/dolphonebubleine

I work in a Microsoft shop and we have no reason to open source our code because doing so wouldn't benefit anyone. We've been using TFS, where everything is integrated into visual studio and you have history and a merging thing. We are moving to github because.... because........................... github is...be..tter. Why? It's not. In fact, it's several different, not as good, apps taking the place of TFS which just worked. We became .NET developers because .NET had a nice GUI and was easy to use. Now we're abandoning that practicality because github is trendy. It offers literally absolutely no advantage at anything and is much harder to deal with than TFS.

I also have to type in the code from a text every time I want to login because github narks on you if you dont have two factor authentication. Please tell me ONE reason why github is better than TFS and if you say microsoft I'll reach through the internet and <ITAR REDACTED>

3 comments

2

Microsoft :P

On a more serious note, basically nothing if you're not planning to ever make the source available to other people. The point of the git model is being able to easily and flexibly allow people access so projects can have an explosive number of contributors. IDK maybe they're outsourcing your IT team.

Sooo . . . Short answer, no.

1

Github is shit; Git is good.

I don't understand why anyone would use the public offering when they run Git themselves....(hint, convince them). I like Stash/Bitbucket, but it may not be free in your case - I forget the terms.

0

I also have to type in the code from a text every time I want to login because github narks on you if you dont have two factor authentication.

Wait, are you talking about logging in whenever you need to push/pull a change from a repo on Github? There's a better way. Set up an ssh key by going into your settings and putting your public key in the ssh settings. Then to use that key instead of a password when pushing/pulling you'll need to add an entry to your ssh config like so:

Host myGithub
    IdentityFile ~/.sshkeys/myGithubkey
    HostName github.com
    User git

Then, set up your remote url (for your repo) to be something like myGithub:MyUsername/MyRepo.git. Then whenever you push/pull your repo, it should use your key automatically and you will not have to log in (unless your key is protected with a password, then ssh-agent's key caching could help with that) .

EDIT: Your ssh config file should be named "config" and reside in a ".ssh" directory in your home directory. Not sure if it's the same for Windows but I think that should work.

EDIT2: When specifying the url for remote, you will need to replace "myUsername@github.com" part with the hostname specified in the config file.