Programming Tips - git: Main git commands

Date: 2019mar30 Update: 2025jul2 Keywords: github Language: bash Q. git: Main git commands A. These are the main commands I use:
git clone <url> Make your own copy git add -A Add current changes git status See current changes (to verify) git config --global --edit Set your name, email once git commit -m '<msg>' Add a message to your changes git commit -a -m '<msg>' Add current changes and a message git push Upload git pull Download in case there somebody else has changed git Lists all commands git shortlog -ns --since={2019-08-01} Lists number of changes by user
To install git on RedHat/Fedora/CentOS
dnf install git
For more info
man git-clone man git-add ...