Git上区分大小写的分支名称

时间:2016-02-05 10:38:23

标签: git version-control branch rename

我有分支叫:

stuff/mythirdbranch
stuff/myfourthbranch

我还有另一个分支叫:

private static Context context;

public static synchronized Context getContext() {
    return context;
}

@Override
public void onCreate() {
    super.onCreate();
    context = this;

    );
}

注意" s"

的情况

我想将首都S重命名为s。我该怎么做并将更改推送到我的git服务器

1 个答案:

答案 0 :(得分:2)

首先,确保您与遥控器同步。然后:

# rename branch locally:
git branch -m Stuff/myfirstbranch stuff/myfirstbranch

# push new branch to remote:
git push origin stuff/myfirstbranch

# delete old branch on the remote:
git push origin :Stuff/myfirstbranch