Skip to content

Instantly share code, notes, and snippets.

@tommypratama
Last active October 1, 2020 11:33
Show Gist options
  • Save tommypratama/143325e117201d99b9239a308ddd2701 to your computer and use it in GitHub Desktop.
Save tommypratama/143325e117201d99b9239a308ddd2701 to your computer and use it in GitHub Desktop.

Create Repository

Create public repository in current directory and view to the browser.

git init && gh repo create -y --public && gh repo view -w

Create private repository in current directory and view to the browser.

git init && gh repo create -y --private && gh repo view -w

Create Project with Vite and Tailwindcss

Create a new repository base on this template.

git init && gh repo create -y -p start-vite-tailwindcss --public && gh repo view -w

Commit Message

Begin a project

git add -A && git commit -m ":octocat: Initial commit"
git add -A && git commit -m ":tada: Initial commit"

🔥 Remove code or files

git commit -m ":fire: Remove file..."

🐛 Fix a bug

git commit -m ":bug: Fix bugs..."

Rename master branch to main

Create main branch

git checkout -b main

Delete local master branch

git checkout -b main

Delete remote master branch

git push origin --delete master

Push main branch

git push origin -u main

Useful Resources

Git Tutorial

Emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment