Hello everybody!
I'm Farrokh Karimi. This is a short tutorial for Git, GitHub, and GitLab. Let's start.
You can download Git source from https://git-scm.com/downloads or install it using teminal command. For example You can use the following command to install Git on Ubuntu:
sudo apt install git
git help # Display help information about Git
git config # Get and set repository or global options
git config --global user.name "[name]" # Sets the name you want attached to your commit transactions
git config --global user.email "[email address]" # Sets the email you want attached to your commit transactions
git config --global color.ui auto # Enables helpful colorization of command line output
git init [project name] # Create an empty Git repository or reinitialize an existing one
git status # Show the working tree status
git add # Add file contents to the index
git mv # Move or rename a file, a directory, or a symlink
git rm # Remove files from the working tree and from the index
git commit -m "[descriptive message]" # Record changes to the repository
git log # Show commit logs
git show # Show various types of objects
git diff # Show changes between commits, commit and working tree, etc
git grep # Print lines matching a pattern
git branch # List, create, or delete branches
git checkout # Switch branches or restore working tree files
git reset # Reset current HEAD to the specified state
git clean # Remove untracked files from the working tree
git merge # Join two or more development histories together
git clone # Clone a repository into a new directory
git remote # Manage set of tracked repositories
git fetch # Download objects and refs from another repository
git pull # Fetch from and integrate with another repository or a local branch
git push # Update remote refs along with associated objects
git tag # Create, list, delete or verify a tag object signed with GPG
Note: GPG is the GNU Privacy Gaurd
git blame # Show what revision and author last modified each line of a file
git bisect # Use binary search to find the commit that introduced a bug
git rebase # Forward-port local commits to the updated upstream head