Results: 1578
Notes
  • Newest first
  • Oldest first
  • Newest first(All)
  • Oldest first(All)
After the command
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
by Valeri Tandilashvili
5 years ago
0
Git
Git & GitHub Crash Course For Beginners
3
If we made changes in a file, that already was in staging area, the latest changes will not be considered if we commit the file, without adding the file in staging again
by Valeri Tandilashvili
5 years ago
0
Git
2
git add index.*
Adds all types of files with name
index
(except deleted index.* files)
git add index.*
by Valeri Tandilashvili
5 years ago
0
Git
1
Adds all modified and new .html files to staging area (except deleted ones)
git add *.html
by Valeri Tandilashvili
5 years ago
0
Git
Git & GitHub Crash Course For Beginners
1
<a href="javascript:history.back()" class="btn btn-default">Go Back</a>
by Luka Tatarishvili
5 years ago
0
JavaScript
0
Remove new files from staging area
git rm --cached new.file
by Valeri Tandilashvili
5 years ago
0
Git
Git & GitHub Crash Course For Beginners
1
Shows current version of Git installed
git --version
by Valeri Tandilashvili
5 years ago
0
Git
Git & GitHub Crash Course For Beginners
1
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
by Valeri Tandilashvili
5 years ago
0
Git
Git & GitHub Crash Course For Beginners
1
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');
    }
}
by Valeri Tandilashvili
5 years ago
0
PHP
1
git pull
Download other developers commits from master branch to our local repository
git pull origin master
by Valeri Tandilashvili
5 years ago
0
Git
Git Tutorial - Learn Command-line Git & GitHub
1
Results: 1578