23 lines
856 B
Bash
Executable file
23 lines
856 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# ==============================================================================
|
|
# 🔀 Cherry-Pick - Git 12: Selektive Commits mit Git Cherry-Pick
|
|
# ==============================================================================
|
|
|
|
# 🎯 TEILZIEL 1: Commit-Hash des Bugfixes im Feature-Branch ermitteln
|
|
# 🎯 TEILZIEL 2: Auf Release-Branch wechseln und commit mit git cherry-pick <hash> anwenden
|
|
# 🎯 TEILZIEL 3: Cherry-Pick Konflikt auflösen und abschließen
|
|
# 🎯 TEILZIEL 4: Historie beider Branches vergleichen
|
|
|
|
cherry_pick_commit() {
|
|
local repo_dir="${1:-.}"
|
|
cd "$repo_dir" || return 1
|
|
|
|
# TODO: Implementiere die geforderten Git-Befehle
|
|
echo "Führe cherry_pick_commit in $repo_dir aus..."
|
|
return 1
|
|
}
|
|
|
|
# Direkter Aufruf bei Skript-Ausführung
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
cherry_pick_commit "$@"
|
|
fi
|