• Skip to main content
  • Skip to primary sidebar

Web Development Archive

  • Archive
You are here: Home / Archives for Git

Git

Git Stash

A Gitben a stash funkció használatához az alábbi parancsokat használhatod:

  1. Stash létrehozása: Ez a parancs elmenti a munkakönyvtárad aktuális módosításait egy úgynevezett stash-ben, így a munkakönyvtár tiszta állapotba kerül.
   git stash

Ezzel elmentheted az aktuális módosításokat anélkül, hogy commitolnod kellene őket.

  1. Stash listázása: Ha megnéznéd, milyen stash-ek vannak, használd a következő parancsot:
   git stash list

Ez kilistázza az összes elmentett stash-t.

  1. Stash alkalmazása: Amikor vissza akarod hozni a stash-ben mentett módosításokat, használd az alábbi parancsot:
   git stash apply

Ez visszaállítja a legutóbbi stash-t. Ha egy konkrét stash-t szeretnél alkalmazni, használhatod a git stash apply stash@{n} formátumot, ahol n a kívánt stash indexe.

  1. Stash törlése: Ha már nincs szükséged egy bizonyos stash-re, törölheted a következő parancs használatával:
   git stash drop stash@{n}

Itt is n a törölni kívánt stash indexe.

Ezek a leggyakrabban használt parancsok a Git stash funkciójához. Segítségükkel mentheted és visszaállíthatod a munkád közbeni módosításokat.

Filed Under: Git

Deploy Private GitHub repository to cPanel

Create a WordPress with LocalWP

Create a GitHub Repository

Create an FTP account on your server that points to the theme’s folder

Create the Secret variables GitHub / Settings / Secrets and variables

FTP_SERVER
FTP_USERNAME
FTP_PASSWORD

Create an Action GitHub / Actions / New Workflow and paste in this snippet in main.yml file

If the sync goes without problems, pull the main.yml config file to your local theme’s folder.

git pull

Create a new file, or take any modifications you need and push them to the git repository.

git add .
git commit -m 'First modification'
git push

Filed Under: Devops, Git

Primary Sidebar

  • angular.io
© 2026 WP Flames - All Right Reserved