Skip to content

Git Cheat Sheet

Alberto Palacios Cabrera edited this page Mar 26, 2024 · 1 revision

Here are some helpful git commands that may work during code development

Command Description
git status List all new or modified files
git diff Show file differences that haven't been staged
git branch -a Show all your local and remote branches
git branch -d Delete the local branch that you input
git remote update origin --prune Removes any remote branches that have been deleted on the remote repository since the last update
git checkout -b <branch-name> origin Create a new branch from origin and move to that branch
git push origin <branch-name> Commits from the local branch to the remote repository

Clone this wiki locally