Pull in changes from a Github fork

Pulling in a single commit would be a cherry-pick and would rewrite the commit ID (and mark you as the committer while retaining the author). The process is pretty straightforward, though: git fetch git://github.com/user/project.git git cherry-pick <SHA-COMMIT-ID> You get the SHA from the repository log, for example: git log –oneline b019cc0 Check whether we have … Read more

Git, error: remote unpack failed: unable to create temporary object directory – By creating new Branch

This error message: error: remote unpack failed: unable to create temporary object directory indicates that the Git repository at the server (not your Git) is out of space, or running into similar server problems,1 or installed incorrectly. That is, given: To: http://git.int.censoredlink/scm/freeb/freebrep.git you will have to log in to the machine that serves HTTP traffic … Read more

Track file inside ignored directory

To add to “.gitignore exclude folder but include specific subfolder”, one good way to debug those .gitignore file is to use git check-ignore (Git 1.8.4+): git check-ignore -v my_folder/my_file.md You would see it is still ignored because of the my_folder/ rule. That is because it is not possible to re-include a file if a parent … Read more

File not shown in git diff after a git add. How do I know it will be committed?

If you’d like to see the staged changes in a diff, you can still use git diff, you just need to pass the –staged flag: david@pav:~/dummy_repo$ echo “Hello, world” > hello.txt david@pav:~/dummy_repo$ git status # On branch master # # Initial commit # # Untracked files: # hello.txt nothing added to commit but untracked files … Read more

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