Skip to content

Instantly share code, notes, and snippets.

View dav1lex's full-sized avatar

DAVILEX dav1lex

  • Warsaw
  • 22:50 (UTC +01:00)
View GitHub Profile
@dav1lex
dav1lex / repo-reset.md
Created February 25, 2023 18:23 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@dav1lex
dav1lex / solutions.clj
Created October 28, 2021 10:48 — forked from leonardinius/solutions.clj
4clojure my solutions
;; http://www.4clojure.com/problem/1
;; Nothing but the Truth
;; Difficulty: Elementary Topics:
;; Description: This is a clojure form. Enter a value which will make the form evaluate to true. Don't over think it! If you are confused, see the getting started page. Hint: true is equal to true.
;; TestCases:
;; (= __ true)
true
;; http://www.4clojure.com/problem/2