Showing posts with label github. Show all posts
Showing posts with label github. Show all posts

Monday, July 16, 2012

Requests

At Hacker School, there is a week where we all divide into groups, choose an open source project, and make a contribution. Group sizes vary based on interest in a project and you can have subgroups within the groups.  My group chose to contribute to Requests, an easy to use HTTP library in Python.

We submitted a couple of documentation patches and a few code patches:

1) Documenting SSL client certs

2) Documenting Logging

3) Differentiate between two different types of Timeout errors. Before fix, two types were presented as one.

4) Fix infinite loop on wrong Digest Authentication

5) Add needed casts when POSTing data and files

Friday, July 13, 2012

Emoticons!

I didn't know you can express yourself with emoticons on github until I saw this on one of my Pull Requests:

:sparkles::cake::sparkles:

Thanks Kenneth for bringing this to my attention :)

Checkout this sheet for some ideas.

I think my favorite might be the squirrel wearing the Fedora hat :)

Monday, June 18, 2012

Working with Github

Here are a few commands I use when working with Github:

Delete a local branch:

First switch to another branch, then:

git branch -D <branch name>

Delete a branch from Github:

git push origin --delete <branch name>

Pushing a branch to Github:

git push origin <branch name>

Updated a branch you forked with changes from the original project:

Track the project and create a tag for it, so you can access it by that tag.
git remote add <tag name> <github url>

Fetch the changes

git fetch <tag name>

Merge the changes from a specified branch

Note: This will merge the changes in the specified branch into whatever branch you're currently on. You can check which branch you're currently on by doing 'git branch'.
git merge <tag name>/<branch name>

Example, pulling from git-extras project:

git remote add git-extras git://github.com/visionmedia/git-extras.git
git fetch git-extras
git merge git-extras/master