How to pull remote branch from somebody else’s repo

git remote add coworker git://path/to/coworkers/repo.git git fetch coworker git checkout –track coworker/foo This will setup a local branch foo, tracking the remote branch coworker/foo. So when your co-worker has made some changes, you can easily pull them: git checkout foo git pull Response to comments: Cool 🙂 And if I’d like to make my own … Read more

Meaning of the GitHub message: push declined due to email privacy restrictions

The remote repository has been configured to disallow you pushing a commit that would reveal your personal e-mail address. For example in GitHub you have checked the Block command line pushes that expose my email checkbox to enable this. While you can of course uncheck that setting, it will expose your private e-mail address to … Read more

Why am I seeing “TypeError: string indices must be integers”?

The variable item is a string. An index looks like this: >>> mystring = ‘helloworld’ >>> print mystring[0] ‘h’ The above example uses the 0 index of the string to refer to the first character. Strings can’t have string indices (like dictionaries can). So this won’t work: >>> mystring = ‘helloworld’ >>> print mystring[‘stringindex’] TypeError: … Read more

How can one display images side by side in a GitHub README.md?

The easiest way I can think of solving this is using the tables included in GitHub’s flavored markdown. To your specific example it would look something like this: Solarized dark | Solarized Ocean :————————-:|:————————-: ![](https://…Dark.png) | ![](https://…Ocean.png) This creates a table with Solarized Dark and Ocean as headers and then contains the images in the … Read more

Resize image in the wiki of GitHub using Markdown

Updated: Markdown syntax for images (external/internal): ![test](https://github.com/favicon.ico) HTML code for sizing images (internal/external): <img src=”https://github.com/favicon.ico” width=”48″> Example: Old Answer: This should work: [[ http://url.to/image.png | height = 100px ]] Source: https://guides.github.com/features/mastering-markdown/

How to embed a video into GitHub README.md?

Add a url to video file in your ReadMe. Github now supports videos, see more detailed answer here: https://stackoverflow.com/a/4279746/1092815 You can see a live example here (See at the end of the readme): https://github.com/alelievr/Mixture/blob/0.4.0/README.md Github Pages I strongly recommend placing the video in a project website created with GitHub Pages instead of the readme, like … Read more

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