Files
openide/ideTipsAndTricks/resources/tips/partial_git_commit.html
2025-04-30 13:26:44 +04:00

25 lines
1.5 KiB
HTML

<!-- OpenIDE Project -->
<!-- Copyright (C) 2025 “Open Development Platform” Ltd. (https://openide.ru) -->
<!-- -->
<!-- This program is free software: you can redistribute it and/or modify -->
<!-- it under the terms of the GNU Affero General Public License version 3 or later as published by the Free Software Foundation. -->
<!-- -->
<!-- This program is distributed in the hope that it will be useful, -->
<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -->
<!-- GNU Affero General Public License for more details. -->
<!-- -->
<!-- You should have received a copy of the GNU Affero General Public License -->
<!-- along with this program. If not, see http://www.gnu.org/licenses/. -->
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body><p><b>Commit changes partially</b></p>
<p>You can split changes made to the same file between different commits. In the <span class="control">Commit</span> tool window
<span class="shortcut">&shortcut:ActivateCommitToolWindow;</span>, click <span class="control">Diff</span>. Select the checkbox next to
each chunk of modified or new code that you want to commit and click <span class="control">Commit</span>. Unselected changes will stay
in the current changelist.</p>
<p class="image"><img src="images/tips_partial_commit.png" alt="Partial commit changelists" style="border: 1px solid #55555;"/></p></body>
</html>