add git-operations-in-jetbrains-ides
8
docs/git-operations/jetbrains/_category_.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"label": "JetBrains IDEs",
|
||||
"position": 2,
|
||||
"link": {
|
||||
"type": "generated-index",
|
||||
"description": "Step-by-step guide for Git operations within JetBrains IDEs (IntelliJ IDEA, WebStorm, PyCharm, etc.)."
|
||||
}
|
||||
}
|
||||
58
docs/git-operations/jetbrains/add-commit.md
Normal file
@ -0,0 +1,58 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
title: "Add & Commit Changes"
|
||||
---
|
||||
|
||||
# Add & Commit Changes
|
||||
|
||||
---
|
||||
|
||||
# Add Changes
|
||||
|
||||
## Objective
|
||||
|
||||
Select modified files and place them into the staging area before committing.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Modify one or more files in the project.
|
||||
|
||||

|
||||
|
||||
2. Open the **Commit** window using one of the following methods:
|
||||
1. Click the **Commit** icon in the left toolbar
|
||||
2. Or press: **Ctrl + K**
|
||||
|
||||

|
||||
|
||||
3. The Commit window opens.
|
||||
|
||||

|
||||
|
||||
4. Select the files to stage using the checkboxes.
|
||||
5. Ensure the files appear in the **Changes** section.
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
# Commit Changes
|
||||
|
||||
## Objective
|
||||
|
||||
Save local changes to the local Git repository.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Ensure files are staged.
|
||||
2. Enter a commit message in the **Commit Message** field.
|
||||
3. Click the **Commit** button.
|
||||
|
||||

|
||||
|
||||
4. After a successful commit, you should get the following notification.
|
||||
|
||||

|
||||
|
||||
**NOTES:**
|
||||
- There is no way to change or verify the committer's name in JetBrains IDEs, you must do so via the command line.
|
||||
BIN
docs/git-operations/jetbrains/img/1.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
docs/git-operations/jetbrains/img/10.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
docs/git-operations/jetbrains/img/11.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
docs/git-operations/jetbrains/img/12.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
docs/git-operations/jetbrains/img/13.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
docs/git-operations/jetbrains/img/2.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
BIN
docs/git-operations/jetbrains/img/3.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
docs/git-operations/jetbrains/img/4.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
docs/git-operations/jetbrains/img/5.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
docs/git-operations/jetbrains/img/6.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
docs/git-operations/jetbrains/img/7.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
docs/git-operations/jetbrains/img/8.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
docs/git-operations/jetbrains/img/9.png
Normal file
|
After Width: | Height: | Size: 22 KiB |
15
docs/git-operations/jetbrains/index.md
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
title: "Prerequisites"
|
||||
---
|
||||
|
||||
# Prerequisites
|
||||
|
||||
## Steps
|
||||
|
||||
1. Open a JetBrains IDE.
|
||||
2. Open the project that is already connected to a Git repository.
|
||||
3. Ensure the project appears in the **Project** panel.
|
||||
4. Ensure Git integration is enabled.
|
||||
|
||||

|
||||
52
docs/git-operations/jetbrains/push-pull.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
title: "Push & Pull Changes"
|
||||
---
|
||||
|
||||
# Push & Pull Changes
|
||||
|
||||
---
|
||||
|
||||
# Push Changes
|
||||
|
||||
## Objective
|
||||
|
||||
Send committed changes from the local repository to the remote repository.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Use one of the following methods:
|
||||
1. Click: **Git → Push**
|
||||
2. Or press: **Ctrl + Shift + K**
|
||||
|
||||

|
||||
|
||||
2. Verify the remote repository and branch then click the **Push** button.
|
||||
|
||||

|
||||
|
||||
3. After a successful push, you should get the following notification.
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
# Pull Changes
|
||||
|
||||
## Objective
|
||||
|
||||
Retrieve updates from the remote repository and merge them into the local repository.
|
||||
|
||||
## Steps
|
||||
|
||||
1. Click: **Git → Pull**
|
||||
|
||||

|
||||
|
||||
2. Verify the remote branch then click **Pull**.
|
||||
|
||||

|
||||
|
||||
3. After a successful pull, you should get the following notification.
|
||||
|
||||

|
||||
@ -3,6 +3,10 @@ sidebar_position: 2
|
||||
title: "Add & Commit Changes"
|
||||
---
|
||||
|
||||
# Add & Commit Changes
|
||||
|
||||
---
|
||||
|
||||
# Add Changes
|
||||
|
||||
## Objective
|
||||
|
||||
@ -3,6 +3,10 @@ sidebar_position: 3
|
||||
title: "Push & Pull Changes"
|
||||
---
|
||||
|
||||
# Push & Pull Changes
|
||||
|
||||
---
|
||||
|
||||
# Push Changes
|
||||
|
||||
## Objective
|
||||
|
||||