git
git
get ssh key:
1 | ssh-keygen -t rsa -C "[xxx@xxx.com](mailto:xxx@xxx.com)" |
git initialize:
1 | git config --global user.name "username" |
for proxy:
1 |
|
firewall or ISP ban git port
sometimes, schools or companies may block data traffic, including ssh’s default port 22.
when git is banned, we can use the alternative port provided by github, create a file(if not exist) ~/.ssh/config, and add:
1 | Host github.com |
and test with ssh -T git@github.com
command lines homepage
click here to come back to command line homepage.
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





