<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Timoteo Ladmann</title>
    <description>The latest articles on DEV Community by Timoteo Ladmann (@teoladmann).</description>
    <link>https://dev.to/teoladmann</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F499414%2F378bd14e-3cbf-45ad-b128-5952d2d17ae3.jpeg</url>
      <title>DEV Community: Timoteo Ladmann</title>
      <link>https://dev.to/teoladmann</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/teoladmann"/>
    <language>en</language>
    <item>
      <title>Use about:blank to open an empty page with a clean console in the browser</title>
      <dc:creator>Timoteo Ladmann</dc:creator>
      <pubDate>Fri, 05 Feb 2021 03:05:00 +0000</pubDate>
      <link>https://dev.to/teoladmann/use-about-blank-to-open-an-empty-page-with-a-clean-console-in-the-browser-co8</link>
      <guid>https://dev.to/teoladmann/use-about-blank-to-open-an-empty-page-with-a-clean-console-in-the-browser-co8</guid>
      <description>&lt;p&gt;I happen to use the console in the browser occasionally for trying out some JavaScript code.  But when opening it (Command + Option + J on Mac) on any website, I usually encounter it cluttered, especially as I'm using an ad-blocker.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvo64yptgx4mywdmazq1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvo64yptgx4mywdmazq1k.png" alt="Browser Console Cluttered"&gt;&lt;/a&gt;&lt;br&gt;
I could type &lt;code&gt;clear()&lt;/code&gt; to remove all the warnings, but instead I prefer to open a new tab (Command + T) and enter about:blank in the address bar which returns an empty page with a clean console that you can use as a JavaScript playground.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzsof21gqu0u8o5az9nf2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fzsof21gqu0u8o5az9nf2.png" alt="Browser Console Clean"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>productivity</category>
      <category>browser</category>
      <category>console</category>
    </item>
    <item>
      <title>git stash in one minute</title>
      <dc:creator>Timoteo Ladmann</dc:creator>
      <pubDate>Mon, 26 Oct 2020 16:15:46 +0000</pubDate>
      <link>https://dev.to/teoladmann/git-stash-in-one-minute-3353</link>
      <guid>https://dev.to/teoladmann/git-stash-in-one-minute-3353</guid>
      <description>&lt;h3&gt;
  
  
  Use case
&lt;/h3&gt;

&lt;p&gt;You are working on {some-task}.  Suddenly, you receive a message:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hey {your-name}, we need you to urgently fix {some-urgent-task}.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You think ok, but what do I do with the current work in progress of {some-task}? You evaluate your options:&lt;/p&gt;

&lt;p&gt;❌ commit the unfinished work: not good because maybe you don't have it working yet.  Or maybe it is working, but you don't want to pollute the commit history.&lt;br&gt;&lt;br&gt;
❌ create a branch for the unfinished work: solves the issue of not pushing something that's broken (if that's the case), but you still have to commit unfinished work.&lt;br&gt;&lt;br&gt;
✅ use git stash: saves your current uncommitted changes for later use without the need to commit the unfinished work.  &lt;/p&gt;
&lt;h3&gt;
  
  
  How to use it
&lt;/h3&gt;

&lt;p&gt;1) Save your work in progress for later:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git stash save -u '{what-you-are-working-on}'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-u&lt;/code&gt; is to stash also new files that you've created in the current changes.  The &lt;code&gt;save&lt;/code&gt; is for giving a name to your current work in progress (useful for retrieving it later).  &lt;/p&gt;

&lt;p&gt;2) Work in the more urgent task.&lt;/p&gt;

&lt;p&gt;3) Once you finish with the more urgent task and want to go back to your stashed work in progress you have two options.  The first one is a shortcut to retrieving the last stash created:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git stash pop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But it may happen that you have a list of stashes.  In that case you first want to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git stash list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;See what stash is the one that you want to retrieve to continue working on it (say, for example, number 3) and retrieve it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git stash pop stash@{3}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are more things you can do with git stash.  If you want to check it in more depth, I recommend reading &lt;a href="https://www.atlassian.com/git/tutorials/saving-changes/git-stash"&gt;Atlassian's tutorial&lt;/a&gt; on it.  &lt;/p&gt;

</description>
      <category>git</category>
    </item>
  </channel>
</rss>
