Skip to content

Instantly share code, notes, and snippets.

@gabeborges
Last active December 22, 2015 20:49
Show Gist options
  • Select an option

  • Save gabeborges/6528778 to your computer and use it in GitHub Desktop.

Select an option

Save gabeborges/6528778 to your computer and use it in GitHub Desktop.

Revisions

  1. Gabriel Carpenedo revised this gist Jan 3, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions GIt Instructions
    Original file line number Diff line number Diff line change
    @@ -29,3 +29,7 @@ git clone git@github.com:cbgabe/projectname.git
    git checkout -b user-branchname master
    git pull git://github.com/user/projectname.git branchname

    #WORKING LOCAL WITHOUT INSTALLING A NEW RUBY VERSION
    rm .ruby-version
    #this will not commit it
    git update-index --assume-unchanged .ruby-version
  2. Gabriel Carpenedo revised this gist Jan 3, 2014. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions GIt Instructions
    Original file line number Diff line number Diff line change
    @@ -22,3 +22,10 @@ $git remote add origin git@github.com:username/projectname.git

    $git push -u origin master

    WORKING WITH FORK AND UPDATE BRANCH
    #fork the repository to your local
    git clone git@github.com:cbgabe/projectname.git
    #if there is already an update branch you can pull it
    git checkout -b user-branchname master
    git pull git://github.com/user/projectname.git branchname

  3. Gabriel Carpenedo revised this gist Sep 11, 2013. 1 changed file with 15 additions and 3 deletions.
    18 changes: 15 additions & 3 deletions GIt Instructions
    Original file line number Diff line number Diff line change
    @@ -3,10 +3,22 @@ $git config --global user.name “username”
    $git config --global user.email exemple@email.com
    #setup your Git User Account. You need to have a git account in order to do it

    GENERATE SSH KEY
    GENERATE SSH KEY:
    https://help.github.com/articles/generating-ssh-keys

    INITIALIZING
    INITIALIZING:
    $mkdir projectname
    $cd projectname
    $cd projectname
    #this creates a folder in your local machine

    $git init
    $git add *
    or $git add README.md
    #for those who don't want to add all the files in the beggining
    $git commit -am "Initial Commit"
    $git remote add origin git@github.com:username/projectname.git
    #before you push your files you need to have the ssh key in your local machine in order to have permissions to do it
    #you also have to create a "repository"

    $git push -u origin master

  4. Gabriel Carpenedo created this gist Sep 11, 2013.
    12 changes: 12 additions & 0 deletions GIt Instructions
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    GIT CONFIG:
    $git config --global user.name “username”
    $git config --global user.email exemple@email.com
    #setup your Git User Account. You need to have a git account in order to do it

    GENERATE SSH KEY
    https://help.github.com/articles/generating-ssh-keys

    INITIALIZING
    $mkdir projectname
    $cd projectname
    $git init