Skip to content

Commit

Permalink
Fix git instructions in appendix
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaaano committed Jan 24, 2025
1 parent 0cd9a56 commit b897fa3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions content/modules/ROOT/pages/appendix-vscode-commit-push.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,27 @@ git clone {gitea_console_url}/{gitea_user}/virt-aap-day2
cd /path/to/virt-app-day2
----
+
. **Make changes to file**:
. **Make changes to file and save it**:
+
----
vi /path/to/tasks/main.yml
----
+
. Make changes to your file and save them
+
. **Stage Your Changes**:
** Run the following command to stage all modified files:
+
----
git add -u
----
+
. **Set your Git identity**:
** Run the following command only once:
+
----
git config --global user.email "[email protected]"
git config --global user.name "User1"
----
+
. **Commit Your Changes**:
** Commit the staged files with a descriptive message:
+
Expand All @@ -86,14 +92,15 @@ git commit -m "Add changes to main.yml"
----
+
. **Push Your Changes**:
** Push the committed changes to the remote repository:
** Push the committed changes to the remote repository
** You will be asked for user **{gitea_user}** and password **{gitea_password}**.
+
----
git push
----
+
. **Verify in Gitea**:
** Open your Gitea repository {{gitea_console_url}} in a web browser and confirm that the changes appear.
** Open your Gitea repository {gitea_console_url} in a web browser and confirm that the changes appear.

////
Expand Down

0 comments on commit b897fa3

Please sign in to comment.