![]() Here's a link to the plugin's repo for more info on what it can do. Then open "Package Control: Install Package" in your Command Palette and search for "sublime-github". How to Installįirst, make sure you have the Sublime Package Control plugin. The package has other handy commands included, such as creating and working with Gists and viewing commit history. That saved me a good minute or so, and I'm pretty happy. This will give you a canonical URL to the file, meaning it will show that particular version (since by the time someone sees this, that file may have undergone revisions). If you'd like to be a total superstar, press "y" on your keyboard after you get to this page. With the GitHub Sublime package, I would highlight those lines, then press Shift+Command+P to open up the Command Palette, and find the "GitHub: Open Remote URL in Browser" command, and hit Enter.ĭoing so takes me right to my repo, to the correct file, with those lines already highlighted for me!: Let's say I want to share lines 41-42 with someone to look over the color palette I've chosen for my chart. This package allows you to highlight lines in Sublime, type a command into the Command Palette, and automatically takes you to that particular line(s) in the remote repo. Code review is also one of the most difficult and time-consuming part of the software. For example: Branch feature has been branched off of main and is currently at commit D. In other words, if the head branch's tip commit becomes reachable from the tip of the target branch. On Bitbucket and other source code management systems, pull requests are used to review code on branches before it reaches master. A pull request can be merged automatically if its head branch is directly or indirectly merged into the base branch externally. Code review is a very important part of the software development cycle. The other day I stumbled across a neat Sublime Text package called Sublime GitHub that eases the pain of tasks like these and more. The (written) unwritten guide to pull requests. This is fine, right? It's not exactly the end of the world, but when you are working with an incredibly complex and large codebase with what seems to be an endless number of directories and models (cough, like our Chorus codebase), this can become a very meticulous task, especially when you have to do it multiple times a day. Copy the URL, paste and send to colleague.Git is a distributed version control system (DVCS), which. Look at where I'm at in my local project in Sublime. Sublime Merge encapsulates Gits basic functionality, so when you use it, youre actually using Git.When I write or edit code in Sublime Text, push to GitHub, and want to share that code with a colleague, I often spend a good chunk of time trying to find that file and particular line(s) I want to reference in our repository.
0 Comments
Leave a Reply. |