Skip to content

Latest commit

 

History

History
85 lines (62 loc) · 881 Bytes

File metadata and controls

85 lines (62 loc) · 881 Bytes

snippets

next.js

init project

npx create-next-app@latest

shadcn

init

npx shadcn@latest init

add all components

npx shadcn@latest add .

git · new repo

init

git init

add remote origin

git remote add origin https://github.com/username/repo.git

change remote url

git remote set-url origin https://github.com/username/repo.git

rename branch to main

git branch -M main

stage all

git add .

commit

git commit -m "message"

push

git push -u origin main

git · branches

new branch + switch

git checkout -b branch-name

switch to branch

git checkout branch-name

git · nuke

clear commit history

rm -rf .git && git init && git add . && git commit -m "init" && git push --force