Giter Club home page Giter Club logo

apppeliculasionic's Introduction

AppPeliculasIonic

App peliculas curso IONIC

Comandos Git

  • git status o git status -s (forma esquematizada)
  • git diff [archivo] cambios en el archivo
  • git diff --cached cambios en el area de ensayo (lo que se ira en el commit)
  • git diff --stat muestra un sumario de los cambios
  • git add .
  • git commit -m "Mis nuevos cambios"
  • git commit -am "Nuevos cambios" ----permite añadir los cambios realizados en el proyecto directamente en el área de ensayo y en el historial (que es como saltarse el área de ensayo
  • git reset o git reset [archivo] permite quitar los archivos añadidos al área de ensayo
  • git reset --hard --> Este comando hace que se deshagan todos los cambios y se vuelva al estado en el que se estaba en el commit anterior. Hay que tener cuidado y estar muy seguro al ejecutar este comando ya que borra todos los cambios y archivos nuevos que se hayan realizado desde el commit anterior.

RAMAS

  • git branch --- lista de ramas
  • git branch mirama ----se crea la rama "mirama"
  • git checkout mirama ----me cambio a la rama especificada
  • git branch -v ----Este comando muestra el último commit en cada rama.
  • git checkout -b [rama]---- crea la rama y nos movemos a ella
  • git branch -d [rama] ----- elimina la rama indicada
  • git merge

HISTORIAL COMMIT

  • git log --- muestra todos los commits que han llevado a la instantánea en la que te encuentras

  • git log --oneline

  • git remote show origin ---revisa info del repositorio remoto

Iniciar Proyecto GIT

  • git init

  • git add .

  • git commit -m "first commit"

  • git remote add origin https://github.com/NOMBRE_USUARIO/NOMBRE_PROYECTO.git ---origin es el alias que se le asigna

  • git push -u origin master

  • git remote -v ---- revisa repositorios

  • git remote rename origin mynewalias ---- renombra el alias del repositorio

  • git remote ser-url origin git@......... cambia el repositorio al que apunta

  • git fetch origin -------- sincroniza la informacion del nuevo repositorio

  • git pull origin master --allow-unrelated-histories ---si al inicio da un error el repositorio fatal: refusing to merge unrelated histories

apppeliculasionic's People

Contributors

arenivar93 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.