Hasty Briefsbeta

Bilingual

Git Commands That Cover 90% of a Developer's Daily Workflow

a year ago
  • #Git
  • #Developer Tools
  • #Version Control
  • git init - Creates a new Git repository in the current folder.
  • git clone - Creates a local copy of a remote repository.
  • git status - Shows the current state of your working directory and staging area.
  • git add - Adds files to the staging area for committing.
  • git commit - Saves a snapshot of staged changes with a message.
  • git diff - Shows differences between working directory and staging area or commits.
  • git log - Displays the commit history.
  • git reset - Resets staging area or moves HEAD to a different commit.
  • git checkout - Switches branches or restores files.
  • git branch - Lists, creates, or deletes branches.
  • git merge - Combines changes from one branch into another.
  • git pull - Downloads changes from a remote repository and merges them locally.
  • git push - Uploads local commits to a remote repository.
  • git stash - Temporarily saves changes not ready for commit.
  • git remote - Manages remote repositories.