this is statement of most useful git commands (well, at least I think so; of course you can have a different opinion)
uses to initialize an empty git repo
system (all users):
git config --system
global (current user):git config --global
local (current repo):git config --local
makes git use the editor that was stayed in quotes in messages (like writing a commit)
makes git attach your name that was stood in quotes be attached to your commits
makes git attach your email that was stood in quotes be attached to your commits
allows you to unset something, like
git config --global --unset user.name
will set your repos default branch (default branch: main)
stages a file
stages all files
unstages a file
opens your default editor, letting you write a long message to your commit
commits staged changes with a following message
commits all tracked changes with a following message (skips stagging)
allows you to see commit history (logs)
creates a lightweight tag
creates an annotated tag
tag a specific commit (something like git tag v1.1 1234abcd : v1.1 - tag; 1234abcd - commit hash)
lits tags
shows tag details
pushes a tag to defined branch in a repo
WARNING: if you'll just usegit push, it WON'T push your tags!
you mush push tag explicity
pushes all your local tags to a remote repo
deletes a tag locally
deletes a tag from remote repo
updates or replaces a tag (force push)
stashes your changes
stashes your changes (including untracked files)
stashes your changes with a message
lists all stashes
allows you to see all changes from a previous stash
creates a new branch from a stash
restores your most recent stashed changes (keeps the stash in the stack)
restores a specific stash (replace n in curly brackets to the number of your stash, like
git stash apply stash@{1})
applies the latest stash and removes it from the stack
"drops" (deletes) a specific stash when you no longer need it
deletes all the stashes
creates a new stash and applies your stashed changes
useful if your stashed work should become its own feature branch
show full commit history
show a summary of commits
show details of a specific commit
show unstaged changes
show staged changes
compares two commits