Skip to content

CS Mumbai

A Computer Science Blog

Archives

  • February 2020 (26)
  • January 2020 (31)
  • December 2019 (13)

Recent Posts

  • cURLing basics ;)
  • Configure PHPCS In Sublime Text
  • Useful Git Stuff
  • Git Diff To Sublime Text
  • Focus
  • JS Modify InnerHTML
  • JS Basics – querySelector And addEventListener
  • Git Rebase
  • Record Key Strokes Using JQuery
  • JQuery Event Listener
  • Streak Ended After 57 Days
  • Creating An Alias For A Mac OS Terminal Command
  • WP: Custom Post Type
  • WP: Custom Queries
  • WP: Trim Words
  • WP: Register A New Menu Location
  • WP: Theme Support For Title
  • WP: Enqueue Styles & Scripts
  • WP: Head & Stylesheet
  • WP: More On Header And Footer
  • WP: Header & Footer
  • Prettify Your Code
  • WP: Single.php
  • WP: Delete Plugin Data On Uninstall
  • WP: Add A Form To The Plugin Admin Page
  • WP: Create A Plugin Admin Page
  • WP: Shortcode To Display Page Template
  • WP: Create A Page Template
  • WP: Create A Shortcode
  • 10 Common Git Commands
  • WP: The Loop
  • WP: Blog Title & Description
  • WP: Hello World Theme
  • WP: Hello World Plugin
  • Python: Unit Tests
  • CSS: Display None
  • 30 Day Blogging Streak
  • WP: Install WordPress Locally
  • Python: Find Nth Last Node In A Linked List
  • A Good Bad Password
  • Security 101: Passwords
  • Python: Linked List Cycle Check
  • Python: Bracket Validator
  • Python: String Compression
  • Python: Sentence Reversal
  • Python: String Reversal
  • Python: Anagrams
  • Python: Recursive Fibonacci
  • Python: Prime Numbers
  • Python: Jupyter Notebook

Tag: diff

Git Diff To Sublime Text

I use git diff command to check the difference (additions/deletions) on my current branch. That works just fine but I’d love to have this result in a text editor like Sublime.

This can be done by saving the file in .diff format. Example: git diff > foo.diff and it’ll create a foo.diff file for you. This can then be opened in Sublime Text 🙂

Posted on February 24, 2020Tags diff, git, sublimeLeave a comment on Git Diff To Sublime Text
Blog at WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • CS Mumbai
    • Already have a WordPress.com account? Log in now.
    • CS Mumbai
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar