git:如何在github中将当前已更改的工作区升级到新版本(标记)

git:如何在github中将当前已更改的工作区升级到新版本(标记),git,github,Git,Github,git:如何在github中将当前已更改的工作区升级到新版本(标签) 比如说, 1. git clone a project at tag 1.0 in github 2. create a branch foo, and made some file changes in the branch, staged but not committed 3. the project has a new release 2.0 如何指向新版本2.0并将所有更改拉入分支foo?我相信您需要做的是:

git:如何在github中将当前已更改的工作区升级到新版本(标签)

比如说,

1. git clone a project at tag 1.0 in github
2. create a branch foo, and made some file changes
   in the branch, staged but not committed
3. the project has a new release 2.0

如何指向新版本2.0并将所有更改拉入分支foo?

我相信您需要做的是:

git fetch --tags
git checkout <destination_branch> //if not checked out
git merge <tag_name>
git fetch--tags
git签出//如果未签出
git合并
希望这对你有用

可能重复的