Commit
git add .untuk tambahkan semua filegit commit -m "message"git commit --amenduntuk commit ulang dengan versi terakhirgit rm [file]git commit --allow-empty -m "Trigger Build"untuk commit empty commitgit commit -m 'ci: empty commit' --allow-empty && git push && git reset --soft HEAD~ && git push -funtuk commit empty commit kemudian reset ke last commit agar history-nya tidak rusakgit ammenddangit push --force-with-leaseuntuk merubah commit message,force-with-leasemembantu memeriksa agar dirubah jika tidak ada penambahan commit dari orang lain
Log
git statusgit log --oneline
Branch
git branch -luntuk list branch localgit branch -runtuk list branch remote
Merge
git rebase -i HEAD~[N]examplegit rebase -i HEAD~3for the last 3 commit. And then, choosepick / pfor the old commit to be used as based and other assquash / sgit merge --squash [branch]to squash all commit from another branch to current branch
Blame
git blame [path] -L 1,4see who responsible for code in path on line 1-4
Config
git config --list --show-origingit config core.emailataugit config --get core.emailataugit config --get-all core.emailgit config --get-regexp core.*git config core.name [name]ataugit config --global core.name [name]untuk set