os4top16

1.创建一个test项目安装gitbash

2.创建ssh-key

ssh-keygen  -t rsa -C "yundv@outlook.com"
cd .ssh

查看公钥并将公钥复制到github

3.验证ssh-key是否生效

ssh -T git@github.com

4.配置用户名及邮箱

git config -global user.name "用户名"
git config -global user.email "邮箱地址"

5.创建work

mkdir test
cd test
git init
git  pull  git@github.com:yundd/test.git
git remote add origin git@github.com:yundd/test.git
echo "hello world">test.txt
git add   test.txt
git commit -m "写入提交内容的介绍"
git push git@github.com:yundd/test.git

分类:

技术点:

相关文章:

  • 2022-02-03
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-10-12
  • 2021-08-18
  • 2022-01-22
猜你喜欢
  • 2021-07-11
  • 2021-12-19
  • 2021-04-24
  • 2021-10-21
  • 2022-02-10
  • 2021-12-29
  • 2022-12-23
相关资源
相似解决方案