git commit
-> i - to jump into insert mode
-> esc - takes us out of insert mode
-> :w - to save written comment
-> :q - to quit
------------------------
:w and :p can be combined into :wqgit add *.html<a href="javascript:history.back()" class="btn btn-default">Go Back</a>git rm --cached new.filegit --versiongit clone
Initialize local Git repositorygit init
Add files to staging areagit add
Check status of working treegit status
Save changes to local repositorygit commit
Pull latest commits from remote repositorygit pull
Push local commits to remote repositorygit pushtry{
$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');
}
}