Angel Hañari
Drupal Developer
GDG Cusco - Segundo Meetup - 07/09/2022
Drupal Developer
drupal.org/u/langelhc
- Learn how to use Git from the Terminal.
$ cd myproject
$ ls -la
# PRESENTING CODE
Basic command for the Terminal
# PRESENTING CODE
Git was created by Linus Torvalds in 2005
# PRESENTING CODE
# PRESENTING CODE
is a free and open source Software
# PRESENTING CODE
is a Web site where you can host/share your Repositories.
# PRESENTING CODE
*Open source and Self-managed
# PRESENTING CODE
GUI
Ex: SourceTree
https://git-scm.com/downloads/guis/
Terminal
# PRESENTING CODE
https://git-scm.com/downloads
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
$ git config --global core.editor nano
# PRESENTING CODE
# PRESENTING CODE
How it works?
# PRESENTING CODE
# My first commit
$ git init
$ git add .
$ git commit -m "Initial commit."
#additional commands:
$ git status
$ git diff
$ git add -p
$ git log
$ git log –oneline
# Push changes to remote repo.
$ git push
# PRESENTING CODE
vendor/
*.sql
# Ignore .env files as they are personal
/.env
is a plain text file where each line contains a pattern for files/directories to ignore
# PRESENTING CODE
# PRESENTING CODE
# PRESENTING CODE
- Git branches
- Git Stash
- Git Blame
By Angel Hañari