Jasmine Greenaway - Git tools in Visual Studio

Sign in to queue

The Discussion

  • User profile image
    wkempf

    Rather than searching for the VS .gitingore file, use https://gitignore.io. This website lets you pick tags, such as visualstudio, and generate a .gitignore file you can download. This is based off the same .gitignore files in the GitHub repo you find with your search, but this is a much better way to work with it.

    While I've got a few GitHub repos, I don't do much collaborating where I'd deal with pull requests. So, all I know about this is what little was demonstrated here. But, man it looks nice. Why isn't there an equivalent for VSTS? I'd love to be able to work with pull requests on VSTS inside Visual Studio rather than using the web interface.

  • User profile image
    wkempf

    Oh, since you're command line junky anyway, you can use that gitignore.io site from PowerShell.

    invoke-restmethod https://www.gitingore.io/api/visualstudio

    Want to combine tags? Separate them with %2c (the url encoding for a comma).

    invoke-restmethod https://www.gitingore.io/api/visualstudio%2cvisualstudiocode

    Pipe the result to the .gitignore file and you're done.

  • User profile image
    rs38

    @wkempf: thank you (you mistyped the URL :P

  • User profile image
    wkempf

    LOL - not in the first post, but twice in the second. Sorry about that.

Add Your 2 Cents