- how to go back to the previous commit version, modify and commit in the latest one
the command will show you commit version (and to to quit press “Q”).
- git checkout <version of commit>
After run this, the version will be automatically back to the previous version, and then you can update and push it to the latest version
- daily usage commandgit push origin <branch name>
git pull origin <branch name>
git remote -v
git remote add
git add .
will add all of your files that you had changed
git commit -m “comments”
Will commit all of your change, usually we run this after we run “add” command