Some of these changes may also be staged in the index. How git stash encodes your worktree and index as commits:īefore stashing, your worktree may contain changes to tracked files, untracked files, and ignored files. you specified the -include-untracked or -all option when invoked git stash.your working copy actually contained untracked files and Hoy os presento un nuevo comando de git llamado git stash.¿Qué es y Como FuncionaGit stash es un comando que nos sirve para guardar los cambios que no quere.third parent, a new commit representing untracked files that were in your working copy when you ran git stash.second parent, a new commit representing the index when you ran git stash.first parent, the pre-existing commit that was at HEAD when you ran git stash.a new commit to store the tracked files that were in your working copy when you ran git stash.953ddde WIP on main: 5002d47 our new homepage |\ \ | | * 24b35a1 untracked files on main: 5002d47 our new homepage | * 7023dd4 index on main: 5002d47 our new homepage |/ * 5002d47 our new homepageĭepending on what you stashed, a single git stash operation creates either two or three new commits. Instead, you can use git stash branch to create a new branch to apply your stashed changes *. If the changes on your branch diverge from the changes in your stash, you may run into conflicts when popping or applying your stash. Tener repositorios dentro de repositorios. There is no explicit "abort" command, but hitting CTRL-C(SIGINT) will abort the stash process. Aparte de todo lo mencionado en esta gua, queda an mucho terreno para explorar tanto en lo que permite Git como en lo que se puede hacer con GitKraken, a continuacin se listan algunas de estas posibilidades para que el lector pueda indagar en mayor detalle si lo desea. Quit (any hunks that have already been selected will be stashed) You can hit ? for a full list of hunk commands. Some of these changes may also be staged in the index.$ git stash -p diff -git a/style.css b/style.css new file mode 100644 index 0000000.d92368b - /dev/null +++ b/style.css +* Stash this hunk ? y diff -git a/index.html b/index.html index 9daeafb.ebdcbd2 100644 - a/index.html +++ b/index.html + Stash this hunk ? n Para ver lo que hay en el stash solo tengo que escribir git stash list y nos mostrará la lista de las cosas que guarde en el stash. Es simple solo tengo que hacer git stash y mis cambios serán almacenados en una pila, así: git stash. you specified the -include-untracked or -all option when invoked git stash. Te recomiendo leer: IGNORAR ARCHIVOS Y CARPETAS de GIT con.your working copy actually contained untracked files and.There is no explicit "abort" command, but hitting CTRL-C(SIGINT) will abort the stash process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |