Git Branch Rename Local and Remote on GitLab with Commit History

Опубликовано: 11 Октябрь 2024
на канале: Lian
350
5

I demo Git Branch Rename Local and Remote on GitLab with Commit History in the video.
How to update Commit History to new branch? Run command, git branch -u origin/"new branch name" "new branch name".

👉🏼 Video content MD file: https://github.com/LianDuanTrain/Quic...

Video Related Commands:
git checkout "old branch name"
git branch -m "new branch name"
git push origin -u "new branch name"
git branch -u origin/"new branch name" "new branch name"
git push origin --delete "old branch name"

------------------------------------------------------------------------------------

🧡 Subscribe to show your support! https://bit.ly/3hrhOmW
------------------------------------------------------------------------------------
⏰ T I M E S T A M P S ⏰
00:00 🏁 Start
00:53 ✅Overview project
01:33 🍫 Run git checkout to target branch
01:52 🗝️ Run git branch -m to rename branch
02:13 📝 Run git push origin to push remote branch
02:54 📝 Run git branch -u origin to update commit history
03:42 📝 Run git branch -u origin to update commit history
04:02 📝 Summary
------------------------------------------------------------------------------------

Also, if you're new to AWS Fargate, GitLab, Docker, Helm 3, or K8S, check out my guides below:

👉🏼 AWS ECS Fargate Crash Course
   • AWS ECS Fargate Crash Course  

👉🏼GitLab CI/CD Crash Course:
   • GitLab CI/CD Crash Course  

👉🏼Quick Share CI/CD Tips:
   • Quick Share CI/CD Tips  

👉🏼Helm 3 Introduction and Installation
   • Helm 3 Introduction and Installation  

👉🏼Helm 3 Deep Dive
   • Helm 3 Deep Dive  

👉🏼Docker Tutorial for Beginners Step by Step
   • Docker Tutorial for Beginners Step by...  

👉🏼Docker Compose Tutorial
   • Docker Compose Tutorial  

👉🏼Install Minikube in Windows 10 via Docker Desktop
   • Install Minikube in Windows 10 via Do...  

👉🏼Kubernetes Minikube
   • Minikube  

👉🏼Kubernetes Core Concepts and Demo
   • Kubernetes Core Concepts and Demo  

👉🏼Kubernetes Advance and Demo
   • Kubernetes Adavance and Demo  

👋-----------------------------------------------------------------------------------
Easy Connect:
🏢 https://bit.ly/3tN3DeI
🐦 https://bit.ly/3LF2q1Z