×
Clear all filters including search bar
Valeri Tandilashvili's Personal Professional Blog
.gitignore file. For example, if we don't want to include any .txt files, any files inside /docs directory, and also any .html files inside /dir, then the file will contain:*.txt
/docs
/dir/*.htmlindex.html file from staging areagit restore --staged index.html
Removes all files from staging areagit restore --staged .
Alternative command is: git reset HEAD index.html / git reset HEAD .also works on windows PowerShellindex (except deleted index.* files)git add index.*git add *.htmlgit 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');
}
}git pull origin master