Prevent git from using pager for short output?

As of December 2017 if you are using the latest version of less (at least 530) then the below is slightly incorrect. Now -F alone will properly output short output (as if by cat) while not needing -X. Since you can now use -F alone to see short output this means long output will still … Read more

In “git checkout — files”, what does “–” mean?

The — separates the paths from the other options. From the documentation: git checkout [-f|–ours|–theirs|-m|–conflict=<style>] [<tree-ish>] [–] <paths>… If this notation didn’t exist the following two commands would be ambiguous: git checkout <tree-ish> <path1> <path2> git checkout <path1> <path2> <path3> With the — notation it is clear which is meant: git checkout <tree-ish> — <path1> … Read more

Error setting certificate verify locations – Github

In my case, on windows, It was not working after setting of name, e mail as well as certificates path for git config. following command run from command prompt fixed this issue. git config –global http.sslcainfo “C:\Program Files\Git\usr\ssl\certs\ca-bundle.crt” path of your ca-bundle.crt may vary in your case.

What’s so great about git?

On the top of my head: its distributed aspect (each developer has a copy of the repository) The ability to handle complex merges very quickly the possibility to switch from task to task, shelve his work, go back to it… cheap branching (instant switch: it just writes a few bits in a file! And it … Read more

git branch permissions

Git does not have branch specific permissions. You can either make the whole repository read only to the people or create one private and one public repository and only push the development branch to the public on while keeping the master only in your private repository. Edit: For branch specific permissions, you need a server-side … Read more

How to git pull from public repo via ssh without a key?

I just tried it without key, and I confirm it cannot work (without SSH key): $ git clone [email protected]:rlpowell/config.git Cloning into ‘config’… Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. That is because GitHub won’t authorize anonymous access through SSH … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)