GithubHelp home page GithubHelp logo

introprogras10's Introduction

Git

Download

Setup

# Crear un repositorio local en el directorio actual
git init  

# Vincular el repositorio local con uno de remoto (Github, Gitlab, Atlassian...)
git remote add origin [repoURL]     

ó

# Clonar un repositorio a este directorio (clone crea un directorio)
git clone

Branches

# Crear una nueva branch llamda [newBranchName] a partir del estado de la branch actual 
git checkout -b [newBranchName]

# Listado de todas las branch (locales y remotas)
git branch -a

# Cambiar a la branch [branchName] (debió ser previamente creada)
git checkout [branchName]

# Trae los cambios de la branch [branchToMerge] a la branch actual, es decir, la branch actual va a tener los cambios de [branchToMerge]
git merge [branchToMerge]

Conocer el status actual del repositorio local

git status

Prepare a commit

# Indicar cuales son los archivos a incluir en el commit
git add [path/fileName]

# Incluir todos los archivos modificados para este commit
git add --all

# Agregar una descripción general al commit
git commit -m'[Commit description]'

Pull/push

# Obtener los cambios remotos a mi [branchName] local
git pull origin [branchName]

# Compartir mis cambios locales en la branch [branchName] al repositorio remoto
git push origin [branchName]

introprogras10's People

Contributors

mitsiu-carreno avatar danilomaaal avatar

Watchers

James Cloos avatar  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.