-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea1a003
commit 133f79f
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
``` | ||
``` | ||
|
||
# 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. |