Skip to content

Instantly share code, notes, and snippets.

View neetabelthan's full-sized avatar

Neeta Belthan neetabelthan

  • Superchargd
  • San Franscisco, CA
View GitHub Profile

Git Revert
The git revert Command

The git revert command undoes a committed snapshot. But, instead of removing the commit from the project history, it figures out how to undo the changes introduced by the commit and appends a new commit with the resulting content. This prevents Git from losing history, which is important for the integrity of your revision history and for reliable collaboration.
Usage:
git revert commit

Git Reset
The git reset Command

@neetabelthan
neetabelthan / jquery_example.html
Last active August 29, 2015 13:55 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<!-- Add a link to jQuery CDN here script here -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
@neetabelthan
neetabelthan / 0.2.1-boggle_class_from_methods.rb
Last active December 31, 2015 16:28 — forked from dbc-challenges/0.2.1-boggle_class_from_methods.rb
phase 0 unit 2 week 1 boggle class challenge
class BOGGLEBOARD
dice_grid = [["b", "r", "a", "e"],
["i", "o", "d", "t"],
["e", "c", "l", "r"],
["t", "a", "k", "e"]]
def initialize(bb) # Created an initialize method and initialized the instance variable
@bb = bb
end