Arkain Guides
What's new?Getting StartedUser GuideCredit And MembershipFAQ
  • Arkain Guides
  • Getting Started
    • What is Arkain?
    • Quick Started
  • User Guide
    • Dashboard
      • Container
        • Container Specifications
        • Container Management
          • Creating Container
          • Import GitHub Repos
          • Container Settings
            • Init Script
            • Environment Variable
            • Container Upgrade
            • Rename the Container
            • Container Sharing
          • Container Run / Stop / Delete
        • Auto-off
        • NVIDIA Tesla T4 GPU Container
        • Inactive Container
      • Credit Usage
      • Billing
        • Coupon
    • Workspace
      • File Management
        • Move
        • Open / Close in Editor
        • Properties
        • Import / Export
        • Compress / Extract File
      • Commands
      • Source Code Management Git
        • Git Sidebar
        • Branch
        • Changes / Historys / Event tabs
        • Add
        • Commit
        • Push
        • Pull
        • Ignore
        • Diff
      • Collaboration
        • Container Sharing
        • Co-Editing
      • SBOM Management
      • Multi Project
      • URL / Port
      • Keyboard Shortcut
    • Arkain AI
      • What is Arkain Snap
      • What is Side Chat
        • How to use Side Chat
      • Supported Models
      • Auto-completion
    • Templates
      • Create a Template
      • Browse Templates
      • Manage a Template
      • Malicious Templates and Comment Policy
    • Bug Reporting
    • Key Terms
  • Credits & Membership
    • About Arkain Beta Crew
    • Credits
      • Calculate Your Credit Usage
      • Purchasing Credits
    • Membership
      • Subscribing to Membership
  • FAQ
    • FAQ
      • How to run as background process
      • SSH Configuration
      • Why my container blocked
      • I want to use Selenium.
      • How do I copy / paste from the terminal?
      • Official Template Guide
        • Web with Open API
  • What's new?
    • Arkain Release Note
      • March 31, 2025
      • Apr 7, 2025
      • Apr 14, 2025
      • Apr 24, 2025
      • May 15, 2025
      • May 23, 2025
      • Jun 5, 2025
Powered by GitBook
On this page
  • How to use Diff
  • The editor area
  • The button area

Was this helpful?

Export as PDF
  1. User Guide
  2. Workspace
  3. Source Code Management Git

Diff

Diff lets you see what changes have been made in your Arkain before committing to your linked Git account.

PreviousIgnoreNextCollaboration

Last updated 2 months ago

Was this helpful?

How to use Diff

Clicking a file in the Unstaged files or Staged files list in the Git Sidebar will open the Diff tool. You can view the changes in the source code in the editor.

The editor area

You can compare the source code before the change (left) and the source code after the change (right).

In the pre-change source code, lines of code that were deleted are highlighted in red and marked with a - next to the line number. In the after-change source code shows the lines of code that were added with a green highlight and a + next to the line number.

Also, the code that was actually changed is highlighted darker.

The status of the file determines which source code is compared.

If you open the Diff Tool from a file that is ‘off-stage’, the source code before the change is the source code as of the last commit, and the source code after the change is the source code you are currently working on.

If you open the Diff Tool from a ‘staged file’, the pre-change source code is the source code at the last commit and the post-change source code is the source code at the time it was added to the stage, and modifying the source file does not modify the source code in the Diff Tool.

You can tell which status of the Diff Tool was opened in by looking at the Editor tab. Diff tool opened from Files Removed from Stage are named with the original filename followed by (Working Tree), Diff tool opened from Files Added to Stage will have the original filename followed by (Index).

The button area

The buttons area in the top right corner of the screen provides 4 functions.

  • Open file Opens the Diff Tool's source file editor for the file you are currently viewing.

  • Previous change, Next change Moves the cursor to the previous, next change of the current cursor in the source code area after a change.

  • Toggle collapse unchanged regions Unchanged source code areas are hidden. If the unchanged source code area is small, it may not be hidden. Click the button one more time to see the full source code again.

  • Change the way the editor area is viewed You can change the placement of the source code before changes and the source code after changes. Click the Split button to change to a left-to-right orientation, or the Inline button to change to a top-to-bottom orientation.

Note If you open the [Git] tab and there is only a [Register repository] button, you need to connect the repository first. See how to connect on page.

Import Github Repos