| Task | Command |
|---|---|
| Initial git setup | git config --global user.name {your name}git config --global user.email {your email}git config --global core.fileMode falsegit config --global push.default simpleecho .DS_Store >> ~/.gitignore_globalgit config --global core.excludesfile ~/.gitignore_global |
| ssh create key | ssh-keygen -t rsa |
| ssh list keys | ssh-add -l |
| ssh convert to .pem | openssl rsa -in ~/.ssh/id_rsa -outform pem > id_rsa.pem``chmod 600 id_rsa.pem |
Here are the most used and most common Git commands. This text assumes your primary branch is called main.
| Command | Effect |
|---|---|
git status |
Will report the status of files changed on the local filesystem. Always check this status before messing around with checkouts, branches, pushes, pulls, etc. |
git checkout -b {branch} |
Create, and switch over to a new branch; this is how you make a new branch to work in. |
git checkout {branch} |
Goes to an existing branch; e.g., git checkout main. |
git branch |
See a list of branches. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zend_extension=/usr/local/Cellar/php/8.0.5/pecl/20200930/xdebug.so | |
| xdebug.mode=debug | |
| xdebug.client_host=127.0.0.1 | |
| xdebug.client_port=9003 | |
| xdebug.discover_client_host=true | |
| xdebug.default.idekey=PHPSTORM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def fizzbuzz(n): | |
| answer = '' | |
| fizz = not n % 3 | |
| buzz = not n % 5 | |
| if (fizz): | |
| answer += 'Fizz' | |
| if (buzz): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| locations: | |
| nxvl_awesome_location1: | |
| location: / | |
| try_files: | |
| - $uri | |
| - $uri/ | |
| - /index.php$is_args$args | |
| fastcgi: '' | |
| fastcgi_index: '' | |
| fastcgi_split_path: '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vagrantfile: | |
| target: local | |
| vm: | |
| provider: | |
| local: | |
| box: puphpet/ubuntu1604-x64 | |
| box_url: puphpet/ubuntu1604-x64 | |
| box_version: '0' | |
| chosen_virtualizer: virtualbox | |
| virtualizers: |