Results: 1022
git restore --staged
Removes
index.html
file from staging area
git restore --staged index.html
Removes all files from staging area
git restore --staged .
Alternative command is:
git reset HEAD index.html  /  git reset HEAD .
Clears previous console info
also works on windows PowerShell
git add index.*
Adds all types of files with name
index
(except deleted index.* files)
git add index.*
Adds all modified and new .html files to staging area (except deleted ones)
git add *.html
Remove new files from staging area
git rm --cached new.file
Shows current version of Git installed
git --version
Download Git repository
git clone
Initialize local Git repository
git init
Add files to staging area
git add
Check status of working tree
git status
Save changes to local repository
git commit
Pull latest commits from remote repository
git pull
Push local commits to remote repository
git push
PDO duplicate entry error code
We get the error code (using DB unique constraint) when the resource is already created
try{
    $stmt = $conn->prepare($query);
    $stmt->execute($exec_arr);
} catch(PDOException $e) {
    if($e->getCode() == 23000){
        array_push($errors, 'Technology already exists');
    } else {
        array_push($errors, 'Database error');
    }
}
git pull
Download other developers commits from master branch to our local repository
git pull origin master
Pushes new commits to the same remote branch
git push
Results: 1022