Which sequence is the everyday Git flow to save and share a change?
Options
git add→git commit→git push(Correct option)git push→git add→git commitgit commit→git clone→git addgit pull→git delete
Answer
git add → git commit → git push
Why
git clone <url>: copy a remote repo to your machine (once).git add <file>: choose changes for the next snapshot (staging).git commit -m "message": save the snapshot locally.git push: send your commits to the remote repository.git pull: bring the others' commits to your machine.
Before starting work, pull; when done, add, commit and push.
Remember
add → commit → push.