在没有签出的情况下拉远程分支(从另一个分支)

时间:2019-06-13 12:42:03

标签: git git-pull git-fetch

我正在参与一个有很多分支的项目,当我在自己的分支上工作时,另一个分支(例如master)将在远程进行更新。我确实想在不更改当前分支的情况下进行更改(无需签出)。这可能吗?如果可以,怎么办?

2 个答案:

答案 0 :(得分:1)

https://git-scm.com/docs/git-fetch

@Entity
@Table(name="user", schema="myschm")
public class User {
...

答案 1 :(得分:1)

尝试 git fetch <remote> <source>:<destination>

This对我有用git-forward-merge <source> <destination>,但不适用于需要解决冲突的合并。