Skip to content

Instantly share code, notes, and snippets.


Bernardo bedhabits

  • Lisbon
View GitHub Profile
View terminal-cheat-sheet.txt
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
bedhabits /
Created Aug 23, 2020 — forked from ross-u/
bedhabits / git-clearHistory
Created May 1, 2020 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin<YOUR ACCOUNT>/<YOUR REPOS>.git
bedhabits / app.rb
Created Nov 23, 2019 — forked from jbernardoviana/app.rb
View app.rb
require_relative 'router'
require_relative 'controller'
require_relative 'repository'
file_path = 'properties.csv'
repo =
controller =
router =
You can’t perform that action at this time.