VsCode is very slow to use git to submit (always shown in submission)

This is a BUG in VsCode. The solution is to fill in the submission information when you submit.

This problem appeared after the 2022 update, and it is still not solved, which is very strange.

Using the Git plugin in VS Code

Git is a version control system, and VS Code is a powerful source code editor. By using the Git plugin in VS Code, you can easily manage and track your code changes.

Here are some common tasks and operations using Git plugins:

1. Install the Git plug-in

First, you need to install the Git plugin in VS Code. Open VS Code and navigate to Extensions View, search for “Git” and install the “Git” extension.

2. Initialize the Git repository

Open your code project folder and right-click to open the context menu. Select “Initialize Repository” to initialize a new Git repository. Alternatively, if you already have a Git repository, you can select "Open Repository" to open the existing repository.

3. Git operations

  • Commit changes: After making changes to a file in the Source Code Editor, you can do so by clicking the plus icon in the Source Control view to add changes to the Staging Area, then type a commit message and use the checkmark icon to commit the changes.
  • Push to the remote repository: Push the local commit by clicking the three dots icon in the Source Control view and selecting "Push" to the remote warehouse.
  • Pull the latest changes: Pull from the remote repository by clicking the three dots icon in the Source Control view and selecting "Pull" Get the latest changes locally.
  • Create Branch: Create a new branch by clicking the branch icon in the Source Control view and selecting “Create Branch”.
  • Switch branch: Switch to a different branch by clicking the branch icon in the Source Control view and selecting an existing branch.

4. Resolve conflicts

In projects where multiple people are collaborating, conflicts may arise. When you and someone else make changes to the same file and push it to the remote repository, you need to resolve conflicts. VS Code provides tools to resolve these conflicts.

  • Compare Changes: Select the conflicting file in the Source Control view, right-click and select "Compare Changes" to compare your changes with the remote Changes to the repository.
  • Manual resolution of conflicts: Edit the conflict file and resolve the conflict manually. Once completed, mark the file as resolved using "Mark as Resolved".

5. Git History and Details

VS Code provides some features for viewing Git history and details.

  • View commit history: In the Source Control view, click the history icon to view the commit history.
  • View file changes: Select the file in the Source Control view and click "Open Changes" to view changes to the file.

These are just some of the common operations and tasks using the Git plugin in VS Code. By using these basic features, you can better manage your code versions and collaborative projects.

Guess you like

Origin blog.csdn.net/m0_60322614/article/details/133017449