Skip to content

Instantly share code, notes, and snippets.

View Fedec96's full-sized avatar

Federico Cappelletti Fedec96

  • Italy
View GitHub Profile

tqa

A strongly typed hooks library based on TanStack's React Query & Axios to perform common CRUD operations for dead simple RESTful HTTP requests.

Table of contents

@Fedec96
Fedec96 / massive.pull.sh
Created December 25, 2021 23:17
Pull all git repositories from parent directory
#!/bin/bash
ls | xargs -I{} git -C {} pull
@Fedec96
Fedec96 / reset.sh
Last active February 7, 2022 11:08
Reset the commit history for a repository
#!/bin/bash
# Make the current commit the only (initial) commit in the target repository.
git checkout --orphan newBranch
git add .
git commit -m "Initial commit"
git branch -D main
git branch -m main
git push -f origin main