A list of useful git commands for daily activities
- Start using git on your project by running
git init
- Check your status, changes and various pieces of information with
git status
- Multiple reasons to use
git checkout
git init
git status
git add
A good practice is to review your files before you add them to staged.
git diff
git checkout -- {file_path}
Drops changes and reverts file to a state that matches the latest commit.
git commit
git push