07 2022 档案
摘要:vim ~/.bash_profile # 添加别名 = 两边不能带空格 alias 别名='执行命令' # 重新加载配置文件 source .bash_profile 其他配置文件 /etc/profile: 此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/pr
阅读全文
摘要:Git下载 Git 下载地址 Git图形化操作工具Sourcetree 下载地址 Git操作在线学习 配置用户名与邮箱 git config --global user.name "kaixuan" git config --global user.email "zhangkaixuan98@163
阅读全文
摘要:编译C: gcc test.c -o test 运行C: ./test 编译C++:g++ test.cpp -o test 运行C++:./test 安装gcc和g++ gcc用来编译C代码,g++用来编译C++代码 Ubuntu 安装gcc和g++ sudo apt install gcc su
阅读全文
摘要:1. 服务器端创建空仓库 初始化git cd ~ mkdir test cd test git init 终端显示一个初始好的git路径 配置git git config receive.denyCurrentBranch ignore 未执行,则在本地push时报错 2. 本地添加远程仓库并p
阅读全文
摘要:基于密钥验证原理 客户机生成密钥对(公钥和私钥),把公钥上传到服务器,每次登录会与服务器的公钥进行比较。 具体实现步骤 1、在客户机中生成密钥对(公钥和私钥) ssh-keygen (默认使用 RSA 非对称加密算法) 运行完 ssh-keygen 会在 ~/.ssh/ 目录下,生成两个文件: id
阅读全文
摘要:背景 $ ssh -T git@github.com ssh: Could not resolve hostname github.com: No address associated with hostname 解决方法: 1、首先获取 github.com IP 地址 IP 地址查询:Click
阅读全文