Skip to content

Instantly share code, notes, and snippets.

View marbio's full-sized avatar
👋

Fabio Marasco marbio

👋
View GitHub Profile
@marbio
marbio / useful_git_commands.md
Last active June 28, 2023 15:32
Useful Git Commands

Basic

Command Description
git status Check status
git add [file-name.txt] Add a file to the staging area
git add -A Add all new and changed files to the staging area
git commit -m "[commit message]" Commit changes
git rm -r [file-name.txt] Remove a file (or folder)
git reset --hard Reset the staging area and the working directory to match the most recent commit.