Basics
git init
git status
git add [archivo]: Añade los cambios realizados al staging
area (.) – All
git commit -m “text”: Crea una nueva versión con los cambios en el
staging area
git push: Sube todos los commits al servidor
git pull: Descarga todos los commits del servidor
Upload to Github
git branch -M main
git remote add origin https://github.com/jaanmeld/test.git
git push -u origin main
Features
git clone [url repo]:
Config
git config –global user.name [NOMBRE DE USUARIO]
git config –global user.email [EMAIL]
Work in a team
git checkout -b “create-getRandomNumber-function” // CREATES NEW BRANCH
New Project from Gthub
- Create folder
- open folder in Code and clone repository
- if necessary, change branch to Dev
- Change branch to the actual problem working on: git checkout -b “user-auth-login”
Leave a Reply