确实挺后悔没有早点在github上学习,没有用到git工具,亡羊补牢吧,先记录一下简单的步骤:

1、下载 Git for Windows,安装后到你的D盘创建一个Git文件夹;

2、创建 D:/Git/Hello 文件夹,然后进入 Hello,点击右键选择 gitbash;

3、在 github 上注册免费账号,新建容器 Hello,设置ssh值(用git gui很容易生成,粘贴过去)

4、  git config --global user.name 'jinfeng'

    git config --global user.email 'jinfengswust@163.com'

    git init

    git add readme.txt

    git commit -m 'this is my first file on github'

    git remote add origin https://github.com/jinfengswust/Hello.git

    git push -u origin master

5、OK!你可以在github上看到提交的文件;

6、拷贝他人的开源项目,到你的Git目录下打开git bash,git clone https://github.com/username/repname.git

7、多拷贝几个,很有感觉!

相关文章:

  • 2021-08-24
  • 2022-12-23
  • 2021-06-24
  • 2021-05-20
  • 2021-11-08
猜你喜欢
  • 2022-01-02
  • 2021-12-07
  • 2021-07-14
  • 2022-12-23
  • 2021-07-24
  • 2021-08-14
  • 2021-06-20
相关资源
相似解决方案