<?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: Junyu</title>
    <description>The latest articles on DEV Community by Junyu (@fish-404).</description>
    <link>https://dev.to/fish-404</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%2F3440095%2F439a3ab8-fe92-48d8-9c44-98c57c527992.jpeg</url>
      <title>DEV Community: Junyu</title>
      <link>https://dev.to/fish-404</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fish-404"/>
    <language>en</language>
    <item>
      <title>How to remove your commits from submitted PR</title>
      <dc:creator>Junyu</dc:creator>
      <pubDate>Wed, 20 Aug 2025 05:29:40 +0000</pubDate>
      <link>https://dev.to/fish-404/how-to-remove-your-commits-from-submitted-pr-28a9</link>
      <guid>https://dev.to/fish-404/how-to-remove-your-commits-from-submitted-pr-28a9</guid>
      <description>&lt;p&gt;When you submit a PR, it includes a wrong previous commit. How to remove these commits?&lt;/p&gt;

&lt;p&gt;If you are developing on another branch, switch to that branch. If you are developing on main, you can skip this step.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git checkout your-branch
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Github, view the current PR and check how many commits it includes. Replace n in the following command with the number of commits and execute it (if you have synchronized the fork, there will be new commits in Github, but they will not be shown in VS Code, so the rebase result may be earlier than the first commit of the PR):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git rebase &lt;span class="nt"&gt;-i&lt;/span&gt; HEAD~n
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the command line, you will see something like the following text:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pick 888a17a add pnpm setting &lt;span class="k"&gt;in &lt;/span&gt;windows &lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="c"&gt;#15)&lt;/span&gt;
pick 472jkda add pnpm setting &lt;span class="k"&gt;in &lt;/span&gt;windows
pick 472bd9c add switch butoon
pick 0369726 add dark theme change
……
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The commit with the Github PR number will be shown with a hash symbol and the PR number. For example, if I want to remove the second commit, I will change pick to drop.&lt;/p&gt;

&lt;p&gt;To force push the changes, use the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push origin HEAD:your-branch &lt;span class="nt"&gt;--force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This will force push the changes to Github, and the PR commits will be updated.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Tomcat set Windows cmd title</title>
      <dc:creator>Junyu</dc:creator>
      <pubDate>Mon, 18 Aug 2025 09:07:53 +0000</pubDate>
      <link>https://dev.to/fish-404/tomcat-set-windows-cmd-title-1f4h</link>
      <guid>https://dev.to/fish-404/tomcat-set-windows-cmd-title-1f4h</guid>
      <description>&lt;p&gt;When you open multiple tomcat windows, it is difficult to distinguish which window is which project. Setting the window name can help distinguish.&lt;/p&gt;

&lt;p&gt;Enter the bin directory of tomcat, such as &lt;code&gt;T:\apache-tomcat-9.0.60-windows-x64\apache-tomcat-9.0.60\bin&lt;/code&gt;, find the &lt;code&gt;catalina.bat&lt;/code&gt; file, and open it with a text editor.&lt;/p&gt;

&lt;p&gt;You can see in the bottom of the description, there is a parameter called &lt;code&gt;TITLE&lt;/code&gt;, and the default is &lt;code&gt;Tomcat&lt;/code&gt;. You can modify it according to your needs. It can have spaces.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="c"&gt;rem   TITLE           (Optional) Specify the title of Tomcat window. The default&lt;/span&gt;
&lt;span class="c"&gt;rem                   TITLE is Tomcat if it's not specified.&lt;/span&gt;
&lt;span class="c"&gt;rem                   Example (all one line)&lt;/span&gt;
&lt;span class="c"&gt;rem                   set TITLE=Tomcat.Cluster#1.Server#1 [%DATE% %TIME%]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Search for &lt;code&gt;TITLE&lt;/code&gt; in the file, and find the following section. Fill in your name after &lt;code&gt;set TITLE&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight batchfile"&gt;&lt;code&gt;&lt;span class="nl"&gt;:doStart&lt;/span&gt;
&lt;span class="nb"&gt;shift&lt;/span&gt;
&lt;span class="c"&gt;rem Set the title of the window&lt;/span&gt;
&lt;span class="c"&gt;rem if "%TITLE%" == "" set TITLE=Tomcat&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%TITLE%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="kd"&gt;TITLE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kd"&gt;YOURNAME&lt;/span&gt; &lt;span class="kd"&gt;YOURSUBNAME&lt;/span&gt;
&lt;span class="kd"&gt;set&lt;/span&gt; _EXECJAVA&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nb"&gt;start&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;%TITLE%&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nv"&gt;%_RUNJAVA%&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="err"&gt;%&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="na"&gt;-security&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt; &lt;span class="k"&gt;goto&lt;/span&gt; &lt;span class="kd"&gt;execCmd&lt;/span&gt;
&lt;span class="nb"&gt;shift&lt;/span&gt;
&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="kd"&gt;Using&lt;/span&gt; &lt;span class="kd"&gt;Security&lt;/span&gt; &lt;span class="kd"&gt;Manager&lt;/span&gt;
&lt;span class="kd"&gt;set&lt;/span&gt; &lt;span class="s2"&gt;"SECURITY_POLICY_FILE=&lt;/span&gt;&lt;span class="nv"&gt;%CATALINA_BASE%&lt;/span&gt;&lt;span class="s2"&gt;\conf\catalina.policy"&lt;/span&gt;
&lt;span class="k"&gt;goto&lt;/span&gt; &lt;span class="kd"&gt;execCmd&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
  </channel>
</rss>
