text混帐(代码片段)

author author     2022-12-01     607

关键词:

These are common Git commands used in various situations:

start a working area (see also: git help tutorial)
   clone      Clone a repository into a new directory
  git init   Crea un repositorio vacio en la carpeta

work on the current change (see also: git help everyday)
  git add .   Agrega todos los elementos a la carpeta git con el .
  git add *.png agrega todos los elementos ala carpeta pero con extencion .png
  git add /img agrega todos los elementos de la carpeta img
  git add "*.txt" //agrega todos los archivos modificados txt
  git add css/*.css //agrega todos los .css de la carpeta css
   mv         Move or rename a file, a directory, or a symlink
  git reset *.xml  saca elementos que fueron adds
   rm         Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
   bisect     Use binary search to find the commit that introduced a bug
   grep       Print lines matching a pattern
  git log     Muestra los commit hechos
  git log --oneline //muestra los logs pero con commit cortos y los nombres
   show       Show various types of objects
  git status muestra el estado del arbol de trabajo, si hay archivos en rojo esos estan fuera del repo

grow, mark and tweak your common history
   branch     List, create, or delete branches
  git checkout -- .   Restaura a una version antigua de donde se hizo el repositorio
  git commit -m "nombre" le pone un nombre al la foto del repositorio
   diff       Show changes between commits, commit and working tree, etc
   merge      Join two or more development histories together
   rebase     Reapply commits on top of another base tip
   tag        Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)
   fetch      Download objects and refs from another repository
   pull       Fetch from and integrate with another repository or a local branch
   push       Update remote refs along with associated objects

:q //para salirse de algun lugar

cd // entra a una carpeta 

cd .. //retrocede una carpeta

git config --global -e //sirve para ver la informacion del usuario

git config --global alias.lg "comando" //si ponemos git lg saldra el comando

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐(代码片段)

查看详情

text混帐:取(代码片段)

查看详情

text混帐忽略(代码片段)

查看详情

text混帐:拉(代码片段)

查看详情