git reset , checkout branch, and pull latest code
$ git reset --hard commit-id
$ git branch
* dev-xxx/modfiy_value
main
$ git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
$ git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
From https://xxx
a8b9efd23..bfb45a244 main -> origin/main
Updating a8b9efd23..bfb45a244
Fast-forward
xxx.py | 2 +-
yyy.py | 4 ++++
zzz.py | 33 ++++++++++++++++++++++++++++++---
3 files changed, 35 insertions(+), 4 deletions(-)
浙公网安备 33010602011771号