---
# System prepended metadata

title: Guild

---

# Guild

## SSH

-   Generate your SSH key
    > `ssh-keygen -t rsa -b 4096 -C "your_email@example.com"`
    > 
    > Enter till the end
-   Check your SSH key

    -   Linux
        > `cat ~/.ssh/id_rsa.pub`
    -   Windows

        > `cd c:\Users\{your_username}\.ssh\id_rsa.pub`
        > 
        > Using texteditor to open `.pub` file.
-   [Origin Guide](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)
-   [Add SSH key to Github account](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account)

## Git

-   Using SSH key
    -   Clone
        > `git clone { ssh-clone-url }`
    -   Change branch
        > `git checkout { branch_name }`
    -   Change to new branch
        > `git checkout -b { branch_name }`

    -   Update changes/new changes
        -   **Pull** (get new changes)
            > `git pull`
            > 
            > `git pull origin { branch_name }`
            - If `pull` requests have new changes
                > Need to update `users` branch
                > 
                > Standing in `dev` branch
                > 
                >> `git merge users`
                >> 
                >> `git checkout users`
        -   **Add** changes
            > `git add .`
            > 
            > `git add { file_or_folder_name }`
        -   **Commit** changes
            > `git commit -m "{ commit_message*** }"`
        -   **Push**
            -   Update new changes within existing branch
                > `git push`
                > 
                > `git push origin { branch_name }`
            -   With new branch
                > `git push -u origin { branch_name }`
-   **Advanced**
    -   Reset commit
        > `git reset`
    -   Reset to any commit
        > `git log`
        > 
        > Copy first 6 or more commit id characters
        > 
        > `git reset { 6_or_more_commit_id_characters }`
    -   Delete a local branch
        > `git branch -D { branch_name }`
- **Conventional**
    - Commiting
        ```
        feat: { new_feature_commit }
        update: { update_feature_branch }
        fix: { fix_feature_branch_bugs }
        conflict: { merge_conflict }
        ```
    - Branching
        ```
        master: master branch
        dev: development, test branch
        {name}/{feature_name}: [
            example: {
                chat/room
                chat/request
            }
        ]
        ```
    - Variable Naming
        ```
        cases: {
            snakecase: {
                variable_one,
                variable_two,
                usage: []
            },
            pascalcase: {
                VariableOne,
                VariableTwo,
                usage: [Functions, Classes, MustBeAVerb]
            },
            camelcase: {
                variableOne,
                variableTwo,
                usage: [Variables, MustBeANoun]
            },
            exceptions: {
                constants: {
                    CONSTANT_ONE,
                    CONSTANT_TWO
                    usage: [Constants]
                }
            }
        }
        ```

## Workflow
- In Jira Workflow
## Trello
- Kanban board

## Resources

## Tech stack
