Learning
Terminal

Git alapok

A leggyakoribb git parancsok: init/clone/status/add/commit/push/pull/log/diff/branch/merge/stash.

Git alapok

git init
git clone url
git status
git add .
git add file.txt
git commit -m "üzenet"
git push
git pull
git fetch
git log --oneline
git diff
git diff --staged
git branch
git checkout -b new-branch
git switch branch-name
git merge branch-name
git stash
git stash pop
git reset --hard HEAD   # ⚠️

On this page