Sarco
Sarco
CC#
Created by langelescu on 4/27/2023 in #help
✅ How to "rename" Git remote branch?
I think they should preserve "the relationship" with the service pack 🤔
15 replies
CC#
Created by langelescu on 4/27/2023 in #help
✅ How to "rename" Git remote branch?
I think you can just make a new branch and keep the old and put up a note you're going to change the branch name and give time for other people to prepare their PR's
15 replies
CC#
Created by langelescu on 4/27/2023 in #help
✅ How to "rename" Git remote branch?
I don't think it's possible to do this without "breaking" anything
15 replies
CC#
Created by langelescu on 4/27/2023 in #help
✅ How to "rename" Git remote branch?
# Checkout x/develop branch
git checkout x/develop

# Create a new branch named Product/x_develop based on the x/develop branch
git checkout -b Product/x_develop

# Push the new branch to the remote repository
git push -u origin Product/x_develop

# Rename the y_develop branch to develop
git branch -m Product/y_develop Product/develop

# Push the renamed branch to the remote repository
git push origin :refs/heads/y_develop
git push -u origin Product/develop

# Rename the service pack branches
git branch -m x.y Product/x_develop.y
git branch -m x.z Product/x_develop.z

# Push the renamed service pack branches to the remote repository
git push -u origin Product/x_develop.y
git push -u origin Product/x_develop.z
# Checkout x/develop branch
git checkout x/develop

# Create a new branch named Product/x_develop based on the x/develop branch
git checkout -b Product/x_develop

# Push the new branch to the remote repository
git push -u origin Product/x_develop

# Rename the y_develop branch to develop
git branch -m Product/y_develop Product/develop

# Push the renamed branch to the remote repository
git push origin :refs/heads/y_develop
git push -u origin Product/develop

# Rename the service pack branches
git branch -m x.y Product/x_develop.y
git branch -m x.z Product/x_develop.z

# Push the renamed service pack branches to the remote repository
git push -u origin Product/x_develop.y
git push -u origin Product/x_develop.z
Btw this is a "breaking" change so you should probably tell other people about this if you're not the only one working on the repo
15 replies
CC#
Created by Sarco on 3/31/2023 in #help
✅ [JsonProprety] isn't being respected ASP.NET Core
Thank you a lot! That worked
10 replies
CC#
Created by Sarco on 3/31/2023 in #help
✅ [JsonProprety] isn't being respected ASP.NET Core
I still had same isuse
10 replies
CC#
Created by Sarco on 3/31/2023 in #help
✅ [JsonProprety] isn't being respected ASP.NET Core
I was originally using System.Text.Json and JsonPropertyName
10 replies
CC#
Created by Sarco on 3/31/2023 in #help
✅ [JsonProprety] isn't being respected ASP.NET Core
Do you know what's the other Attribute called? 🤔
10 replies