Notizen zu Git
Globale Daten setzen
git config --global user.name "name" git config --global user.email "name@gmail.com" git config --global credential.helper store
Einzelnen Ordner aus Repository in ein eigenes verschieben
cd D:\Temp git clone https://github.com/ml17950/fb-dev.git cd fb-dev git subtree split -P David -b David-Single mkdir D:\Temp\David-Single cd D:\Temp\David-Single git init git pull D:\Temp\fb-dev David-Single github.bat git remote add origin https://github.com/ml17950/fb-david-tools.git git branch -M main git push -u origin main cd D:\Temp\fb-dev git rm -rf David git commit -m "moved to own repository"
Quelle: https://stackoverflow.com/questions/359424/detach-move-subdirectory-into-separate-git-repository
Lokal master zu main
git branch -m master main git fetch -p origin git branch -u origin/main main git remote set-head origin -a git branch -D master git fetch git pull
Quelle: https://stackoverflow.com/questions/71951105/how-to-change-current-branch-in-git-from-master-to-main
Unterschied fetch, pull, push, usw
notizen/git.txt · Zuletzt geändert: 05.11.2024 12:05 von Martin