Why is a git ‘pull request’ not called a ‘push request’?

If you have a code change in your repository, and want to move it to a target repository, then: “Push” is you forcing the changes being present in the target repository (git push). “Pull” is the target repository grabbing your changes to be present there (git pull from the other repo). A “pull request” is … Read more

How to convert a normal Git repository to a bare one?

In short: replace the contents of repo with the contents of repo/.git, then tell the repository that it is now a bare repository. To do this, execute the following commands: cd repo mv .git ../repo.git # renaming just for clarity cd .. rm -fr repo cd repo.git git config –bool core.bare true Note that this … Read more

Multiple GitHub accounts on the same computer?

All you need to do is configure your SSH setup with multiple SSH keypairs. This link is easy to follow (Thanks Eric): http://code.tutsplus.com/tutorials/quick-tip-how-to-work-with-github-and-multiple-accounts–net-22574 Generating SSH keys (Win/msysgit): https://help.github.com/articles/generating-an-ssh-key/ Relevant steps from the first link: Generate an SSH-key: ssh-keygen -t ed25519 -C “john@doe.example.com” Follow the prompts and decide a name, e.g. id_ed25519_example_company. Copy the SSH public-key … Read more

Git: How to squash all commits on branch

Another way to squash all your commits is to reset the index to master: git checkout yourBranch git reset $(git merge-base master $(git branch –show-current)) git add -A git commit -m “one commit on yourBranch” This isn’t perfect as it implies you know from which branch “yourBranch” is coming from. Note: finding that origin branch … Read more

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