Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
hippieZhou committed Sep 16, 2024
1 parent ea1a003 commit 133f79f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
File renamed without changes.
18 changes: 17 additions & 1 deletion src/source/_posts/git-commands-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ date: 2022-02-27 20:55:55
tags: Git
---


# Handbook
```bash
# Initialize a new git repository:
git init
Expand Down Expand Up @@ -88,4 +90,18 @@ git stash apply

# Fetch all remote branches, delete branch if upstream is gone
git fetch --all --prune
```
```

# 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 [email protected]` to confirm if the issue is fixed.

0 comments on commit 133f79f

Please sign in to comment.