Sync Commit diff Repository
- Clonar repo1 “proyect-1”
- Clonar repo2 “proyect-2”
Ubicarse en el “proyect-1” y agregar el repo remoto
- git remote add origin2 URL-GIT-REPO-PROYECT-2
Traer todas las ramas y commit del repo2
- git fetch repo2
Para traer commit del otro repo
- git cherry-pick -m 1 3be6f0b<has-del-commit>
—aceptar todos los commit (especial)
- git commit --allow-empty
Cancelar el merge cuando hay conflicto
- git cherry-pick --abort
Tambien se puede ir directamente a un commit con
- git checkout 9a162e2 <hash del commit>
Other command
======cmd git checkout eb8a5d8 renombrar el readme.md git restore README.md comitear y luego crear rama git switch -c restore-pwa
Note: switching to '9a162e2'.
You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 9a162e2 bugfix/TO-22 * Agregado precios en ENV-global