Skip to content

Instantly share code, notes, and snippets.

@gokusenz
Created October 12, 2018 02:31
Show Gist options
  • Save gokusenz/804e12bddc54d26d41b6ce1d6a61c957 to your computer and use it in GitHub Desktop.
Save gokusenz/804e12bddc54d26d41b6ce1d6a61c957 to your computer and use it in GitHub Desktop.
GIT CRUD
git add file // Stage
git reset HEAD file // Unstage
git checkout -- file // Reset
git diff file // Diff Unstage
git diff --cached file // Diff Staged
git commit -m "Message" // Commit
git push // Push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment