How can I display the current branch and folder path in terminal?

It’s not about a plugin. It’s about prompt tricks in the shell. For a cool setup in bash, check out the dotfiles project of this guy: To get a fancy prompt, include the .bash_prompt in your ~/.bash_profile or ~/.bashrc. To get the exact same prompt as in your question, change the export PS1 line at the end of .bash_prompt like this: I ended up using all … Read more

Difference between git stash pop and git stash apply

git stash pop throws away the (topmost, by default) stash after applying it, whereas git stash apply leaves it in the stash list for possible later reuse (or you can then git stash drop it). This happens unless there are conflicts after git stash pop, in which case it will not remove the stash, leaving it to behave exactly like git stash apply. Another … Read more

Where is git.exe located?

If you’re using GitHub for Windows, git.exe may not be in your PATH, but you may find it in a location like: C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\bin\git.exe That’s the situation for me, in Windows 7 + version 1.0 of GitHub for Windows. In Windows 10 it appears to be in: C:\Users\<username>\AppData\Local\GitHub\PortableGit_<numbersandletters>\cmd\git.exe ( \cmd versus \bin) From GitHub Desktop 1.1 The UI is different … Read more

key_load_public: invalid format

As Roland mentioned in their answer, it’s a warning that the ssh-agent doesn’t understand the format of the public key and even then, the public key will not be used locally. However, I can also elaborate and answer why the warning is there. It simply boils down to the fact that the PuTTY Key Generator generates two different public key formats depending on … Read more

git replace local version with remote version

This is the safest solution: Now you can do whatever you want without fear of conflicts. For instance: If you want to include the remote changes in the master branch you can do: This will make you branch “master” to point to “origin/master”.

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