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 :wq
git add *.html
<a href="javascript:history.back()" class="btn btn-default">Go Back</a>
git rm --cached new.file
git --version
git 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 push
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');
}
}