Sign up to create your own snipts, or login.

Public snipts » github The latest public github snipts.

showing 1-2 of 2 snipts for github
  • Some GIT setup commands I used...
    # Some git/github snippets.
    # My user is swbratcher, so replace it with your own...
    # The user is 'user' so replace it with the username...
    # Is git installed?...
    which git
    #
    # If no, install git...
    # download it from the web. then change to the unarchived directory...
    cd /Users/scott/Desktop/git-1.*
    # run make, make install...
    make
    # ...
    make install
    # ... then optionally...
    make clean
    # ...to clean up.
    #
    # Change to the directory where your projects are stored...
    cd /Working/projects/
    # Copy your public key for the github user setup...
    cat ~/.ssh/id_rsa.pub | pbcopy
    # ...if that didn't copy anything to your clipboard, run this...
    ssh-keygen  # ...and hit return until complete...
    # ...then try again.
    # ...if it still doesn't work, google is your friend, sorry for no more help.
    #
    #
    # Now, test your ssh auth setup...
    ssh git@github.com
    # Clone your project fork from your account.
    # Get this url on the github page...
    git clone git@github.com:swbratcher/project.git
    # 
    # Add the forks of your collaborators. This for each team member...
    git remote add user git@github.com:user/project.git
    # Keep in mind if you pull their code before they say it's ready, 
    # you'll probably break.
    # Now if you are ready to download the files in that repo, go...
    git pull user master
    # view your fork in the built-in GIT GUI...
    git gui
    
    #
    

    copy | embed

    0 comments - tagged in  posted by swbratcher on Apr 07, 2009 at 9:11 p.m. EDT
  • Git Submodules
    github submodule add git://github.com/defunkt/my-fantastic-plugin.git plugins/my-fantastic-plugin
    
    cd plugins/my-fantastic-plugin
    
    github remote add push git@github.com:defunkt/my-fantastic-plugin.git
    

    copy | embed

    0 comments - tagged in  posted by trey on Dec 19, 2008 at 3:27 p.m. EST
Sign up to create your own snipts, or login.