Github notes

From raju

favorite configuration

    git config user.name "Kamaraju S. Kusumanchi"
    git config user.email kamaraju@gmail.com
    

For ssh keys

    ssh-keygen -t rsa -C "kamaraju@gmail.com"
    

Add the key to ssh-agent

    ssh-agent -s
    ssh-add ~/.ssh/id_rsa
    

To copy the key

    clip < ~/.ssh/id_rsa.pub
    

ssh key fingerprint

    ssh-keygen -l -f ~/.ssh/id_rsa -E md5
    

regenerate private key from public key

    ssh-keygen -y -f ~/.ssh/id_rsa
    

repository url

Sample repository url

    https://github.com/<user>/<project>.git
    git@github.com:<user>/<project>.git
    

create first page

    https://github.com/<user>/<project>/new/master
    

search for issues opened by me

    is:issue is:open author:$author
    

for example

    is:issue is:open author:kamarajukusumanchi
    

search in a particular file

Use

    filename:.travis.yml
    

for example

    python unittest filename:.travis.yml
    

search python files

Use

    language:python
    

search my repositories

    user:KamarajuKusumanchi
    

zip archive of a repo

Add /archive/master.zip to the end of a repo's URL. For example https://github.com/USER/REPO/archive/master.zip

useful links

Useful github repos

  • https://github.com/ChrisCummins/labm8 - uses "pip install -r requirements.txt" in .travis.yml and the requirements.txt has lines that specify the minimum required versions of a package (ex:- pandas >= 0.19.0)

Check later