情况如下:
我该怎么做呢?
答案 0 :(得分:1)
干脆做到:
$ git status .
[...]
# modified: README.txt
[...]
# the following will create a tag on the last commit
# (the one already pushed to the remote)
$ git tag -a "v0.12" -m "version 0.12"
# send the tag to the remote
$ git push --tags
# create a new branch 'dev' and immediately switch to it
$ git checkout -b "dev"
# commit the modified files to the new branch
$ git commit -m "updated README for new 'dev'-version" README.txt
# push the new branch to the remote
$ git push