What are the differences between local branch, local tracking branch, remote branch and remote tracking branch?

Here’s the long answer. Remotes: If you’re using Git collaboratively, you’ll probably need to sync your commits with other machines or locations. Each machine or location is called a remote, in Git’s terminology, and each one may have one or more branches. Most often, you’ll just have one, named origin. To list all the remotes, … Read more

Git branching: master vs. origin/master vs. remotes/origin/master

Take a clone of a remote repository and run git branch -a (to show all the branches git knows about). It will probably look something like this: * master remotes/origin/HEAD -> origin/master remotes/origin/master Here, master is a branch in the local repository. remotes/origin/master is a branch named master on the remote named origin. You can … Read more

Git – What is the difference between push.default “matching” and “simple”

git push can push all branches or a single one dependent on this configuration: Push all branches git config –global push.default matching It will push all the branches to the remote branch and would merge them. If you don’t want to push all branches, you can push the current branch if you fully specify its … Read more

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