GDG Cusco - Segundo Meetup - 07/09/2022
Drupal Developer
langelhc@gmail.com
drupal.org/u/langelhc
- Learn how to use Git from the Terminal.
$ cd myproject $ ls -la
# PRESENTING CODE
Basic command for the Terminal
Git was created by Linus Torvalds in 2005
is a free and open source Software
is a Web site where you can host/share your Repositories.
*Open source and Self-managed
GUI
Ex: SourceTree
https://git-scm.com/downloads/guis/
Terminal
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
How it works?
# 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
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
- Create/Add Public SSH Key.
- Create a Repository
- Associate local repo to GitHub.
- Git branches
- Git Stash
- Git Blame
By Angel Hañari