Commands GitHub

A useful list of Github commands
Author
Published

August 22, 2023

Github

gh repo create
git add . && git commit - 'update'
git push origin master 

mkdir repo-name
cd repo-name
touch file.js
git init
git add . && git commit -m 'update'
gh repo create > existing

git push origin master

git pull origin master

# To remove files from terminal
git rm -r fil

# To change of branch

gh

gh repo delete name-repo
gh repo create
gh browse         # Open the repo in a browser Tab

# To update changes to the website
cd danilotpnta.github.io/
git checkout main   # Make sure you are in main branch 
quarto publish gh-pages