Category «Git»

How to git merge one file from other branch to master

Step 1: clone from master git clone [email protected] Step 2: checkout the file from a branch $ git checkout dev Application/view/core/auth/email-reset.phtml error: pathspec ‘dev’ did not match any file(s) known to git. error: pathspec ‘Application/view/core/auth/email-reset.phtml’ did not match any file(s) known to git. $ ls Application/view/core/auth/email-reset.phtml ls: Application/view/core/auth/email-reset.phtml: No such file or directory $ git …

How to save password and username for git pull

How to save password and username for git pull git config credential.helper store then git pull provide user-name and password and those details will be remembered later. The credentials are stored in the disk, with the disk permissions. if you want to change password later git config credential.helper store then git pull provide new password …