Git list of branch names of specific remote

It’s important that it should be done without grep, sed, tail or even ghc -e wrappers, only with true git power, because of their unsafeness and variation. That is only true for git porcelain commands (see “What does the term porcelain mean in Git?”) Use the plumbing command ls-remote, and then you will be able … Read more

How to checkout a remote branch in Git?

I generally find it unnecessary to use git fetch. git pull is sufficient. git pull will synchronize your repository with the remote. The new_feature_branch will then be available. git checkout new_feature_branch will notice the branch in origin and create a new local tracking branch for you and switch to that branch. git pull git checkout … Read more

Remove/hide git branches without deleting commit histories

Here’s one alternative: use non-branch references to save the branch-tips before deleting the branch names. Since these are non-branch references, they won’t show up in git branch output, nor in stuff shown by git log –branches and gitk –branches, for instance. However, they will show up in –all listings, and will retain repository objects. To … Read more

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