Definition of “downstream” and “upstream”

In terms of source control, you’re downstream when you copy (clone, checkout, etc) from a repository. Information flowed “downstream” to you. When you make changes, you usually want to send them back “upstream” so they make it into that repository so that everyone pulling from the same source is working with all the same changes. … Read more

Git push error ‘[remote rejected] master -> master (branch is currently checked out)’

The error message error: refusing to update checked out branch: refs/heads/master is emitted by the remote repository and it means you’re trying to push code to remote non-bare repository that has different code currently checked out in the working directory. The best way to avoid this problem is to push to bare repositories only – … Read more

Visualizing branch topology in Git

Use git log –graph or gitk. (Both also accept –all, which will show all the branches instead of just the current one.) For branch names and a compact view, try: git log –graph –decorate –oneline

How to list all commits that changed a specific file?

The –follow works for a particular file git log –follow — filename Difference to other solutions given Note that other solutions include git log path (without the –follow). That approach is handy if you want to track e.g. changes in a directory, but stumbles when files were renamed (thus use –follow filename).

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