diff --git a/.github/dependabot.yml b/.github/workflows/dependabot.yml similarity index 100% rename from .github/dependabot.yml rename to .github/workflows/dependabot.yml diff --git a/src/source/_posts/git-commands-cheat-sheet.md b/src/source/_posts/git-commands-cheat-sheet.md index 791c4bd..74bb3f2 100644 --- a/src/source/_posts/git-commands-cheat-sheet.md +++ b/src/source/_posts/git-commands-cheat-sheet.md @@ -4,6 +4,8 @@ date: 2022-02-27 20:55:55 tags: Git --- + +# Handbook ```bash # Initialize a new git repository: git init @@ -88,4 +90,18 @@ git stash apply # Fetch all remote branches, delete branch if upstream is gone git fetch --all --prune -``` \ No newline at end of file +``` + +# Errors + +## Fix "ssh: connect to host github.com port 22: Connection timed out" + +try to create or update `~/.ssh/config` as followed: + +```shell +Host github.com + Hostname ssh.github.com + Port 443 +``` + +Then, run the command `ssh -T git@github.com` to confirm if the issue is fixed. \ No newline at end of file