git --version
git config --global user.name "yourname"
git config --global user.email "your@email.hu"
git init
git status
git add index.html
git commit -m "I added index.html"
git log
git add images/*.png
git add .
git add -A
git restore --staged .
git commit -a
git commit -am "I modified the code, and now it's good."
git log --graph --decorate --abbrev-commit --all
git log --graph --decorate --abbrev-commit --all
--pretty=oneline
git checkout -- index.html
git checkout c10e47f
git checkout master
- Press "i"
- Write commit comment
- Press Esc
- Write :wq
git clone https://github.com/user/yourproject.git
yourdirectory
git remote add origin
https://github.com/ty/link-on-your-project.git
git push origin master
git pull origin master
git remote update
git status
git whatchanged origin/master -n 1
git branch bugfix
git checkout bugfix
git checkout master
git merge bugfix
Try to read merge vs rebase article.