diff --git a/docs/git-operations/jetbrains/_category_.json b/docs/git-operations/jetbrains/_category_.json new file mode 100644 index 0000000..e3128c5 --- /dev/null +++ b/docs/git-operations/jetbrains/_category_.json @@ -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.)." + } +} diff --git a/docs/git-operations/jetbrains/add-commit.md b/docs/git-operations/jetbrains/add-commit.md new file mode 100644 index 0000000..90d6418 --- /dev/null +++ b/docs/git-operations/jetbrains/add-commit.md @@ -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. + +![Modified Files](img/2.png) + +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** + +![Opening Commit Window](img/3.png) + +3. The Commit window opens. + +![JetBrains Commit Window](img/4.png) + +4. Select the files to stage using the checkboxes. +5. Ensure the files appear in the **Changes** section. + +![Selected Files](img/5.png) + +--- + +# 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. + +![JetBrains Commit Button](img/6.png) + +4. After a successful commit, you should get the following notification. + +![Commit Notification](img/7.png) + +**NOTES:** +- There is no way to change or verify the committer's name in JetBrains IDEs, you must do so via the command line. diff --git a/docs/git-operations/jetbrains/img/1.png b/docs/git-operations/jetbrains/img/1.png new file mode 100644 index 0000000..5afb616 Binary files /dev/null and b/docs/git-operations/jetbrains/img/1.png differ diff --git a/docs/git-operations/jetbrains/img/10.png b/docs/git-operations/jetbrains/img/10.png new file mode 100644 index 0000000..1eab469 Binary files /dev/null and b/docs/git-operations/jetbrains/img/10.png differ diff --git a/docs/git-operations/jetbrains/img/11.png b/docs/git-operations/jetbrains/img/11.png new file mode 100644 index 0000000..5d332ac Binary files /dev/null and b/docs/git-operations/jetbrains/img/11.png differ diff --git a/docs/git-operations/jetbrains/img/12.png b/docs/git-operations/jetbrains/img/12.png new file mode 100644 index 0000000..3c124f9 Binary files /dev/null and b/docs/git-operations/jetbrains/img/12.png differ diff --git a/docs/git-operations/jetbrains/img/13.png b/docs/git-operations/jetbrains/img/13.png new file mode 100644 index 0000000..527d740 Binary files /dev/null and b/docs/git-operations/jetbrains/img/13.png differ diff --git a/docs/git-operations/jetbrains/img/2.png b/docs/git-operations/jetbrains/img/2.png new file mode 100644 index 0000000..8660229 Binary files /dev/null and b/docs/git-operations/jetbrains/img/2.png differ diff --git a/docs/git-operations/jetbrains/img/3.png b/docs/git-operations/jetbrains/img/3.png new file mode 100644 index 0000000..4bcd02f Binary files /dev/null and b/docs/git-operations/jetbrains/img/3.png differ diff --git a/docs/git-operations/jetbrains/img/4.png b/docs/git-operations/jetbrains/img/4.png new file mode 100644 index 0000000..1376793 Binary files /dev/null and b/docs/git-operations/jetbrains/img/4.png differ diff --git a/docs/git-operations/jetbrains/img/5.png b/docs/git-operations/jetbrains/img/5.png new file mode 100644 index 0000000..ff94324 Binary files /dev/null and b/docs/git-operations/jetbrains/img/5.png differ diff --git a/docs/git-operations/jetbrains/img/6.png b/docs/git-operations/jetbrains/img/6.png new file mode 100644 index 0000000..ca994da Binary files /dev/null and b/docs/git-operations/jetbrains/img/6.png differ diff --git a/docs/git-operations/jetbrains/img/7.png b/docs/git-operations/jetbrains/img/7.png new file mode 100644 index 0000000..48e9ba1 Binary files /dev/null and b/docs/git-operations/jetbrains/img/7.png differ diff --git a/docs/git-operations/jetbrains/img/8.png b/docs/git-operations/jetbrains/img/8.png new file mode 100644 index 0000000..6114986 Binary files /dev/null and b/docs/git-operations/jetbrains/img/8.png differ diff --git a/docs/git-operations/jetbrains/img/9.png b/docs/git-operations/jetbrains/img/9.png new file mode 100644 index 0000000..e3bb0d9 Binary files /dev/null and b/docs/git-operations/jetbrains/img/9.png differ diff --git a/docs/git-operations/jetbrains/index.md b/docs/git-operations/jetbrains/index.md new file mode 100644 index 0000000..885c119 --- /dev/null +++ b/docs/git-operations/jetbrains/index.md @@ -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. + +![JetBrains Project Panel](img/1.png) diff --git a/docs/git-operations/jetbrains/push-pull.md b/docs/git-operations/jetbrains/push-pull.md new file mode 100644 index 0000000..de11910 --- /dev/null +++ b/docs/git-operations/jetbrains/push-pull.md @@ -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** + +![Git Push Menu](img/8.png) + +2. Verify the remote repository and branch then click the **Push** button. + +![Push Dialog](img/9.png) + +3. After a successful push, you should get the following notification. + +![Push Notification](img/10.png) + +--- + +# Pull Changes + +## Objective + +Retrieve updates from the remote repository and merge them into the local repository. + +## Steps + +1. Click: **Git → Pull** + +![Git Pull Menu](img/11.png) + +2. Verify the remote branch then click **Pull**. + +![Pull Dialog](img/12.png) + +3. After a successful pull, you should get the following notification. + +![Pull Notification](img/13.png) diff --git a/docs/git-operations/netbeans/add-commit.md b/docs/git-operations/netbeans/add-commit.md index e1e76ae..8a40d61 100644 --- a/docs/git-operations/netbeans/add-commit.md +++ b/docs/git-operations/netbeans/add-commit.md @@ -3,6 +3,10 @@ sidebar_position: 2 title: "Add & Commit Changes" --- +# Add & Commit Changes + +--- + # Add Changes ## Objective diff --git a/docs/git-operations/netbeans/push-pull.md b/docs/git-operations/netbeans/push-pull.md index 85249c9..d26c109 100644 --- a/docs/git-operations/netbeans/push-pull.md +++ b/docs/git-operations/netbeans/push-pull.md @@ -3,6 +3,10 @@ sidebar_position: 3 title: "Push & Pull Changes" --- +# Push & Pull Changes + +--- + # Push Changes ## Objective