【使用教程】Github(自用)

1.下载Git⼯具

使在windows 命令⾏下边可以输⼊这两个命令:

  1. git
  2. ssh-keygen

2.配置git信息:

在命令⾏⾥输⼊:

$ git config --global user.name "你在Github上注册的账号"

$ git config --global user.email 你在Github上注册的邮箱

3. clone 项⽬

$ cd 到某个⽂件夹,然后

$ git clone https://github.com/Deep-Learning-for-NLP-Chinese/assignment_get_douban_comment

就把 这个 项⽬ clone 下来了

4. 提交⾃⼰代码

$ cd /assignment_get_douban_comment

这个⽂件夹, 然后在这个⽂件夹下边新建⼀个⾃⼰的⽬录,然后把码放到⾥边

5. 提交版本

$ git add <新加或者修改过的⽂件>

也可以使⽤ github add * 添加所有

然后

$ git commit -m '<添加⼀个版本修改的说明, 例如第⼀次提交, 注意要⽤引号包起来>'

6. 同步Github:

如果你按照下边的命令还是提示不能访问, 那就参考 https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ 这个⽹址 ⼀步⼀步 ⽣成 sshkey 然后 参考这个地⽅ https://

help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ 加到 Github ⾃⼰的Profiler->

settings 的ssh and gig keys。

$ git push -u origin master

这个的意思是 添加到 远程的github 的 master 分⽀

7. 刷新Github ⽹⻚

可以看到⾃⼰代码修改过的痕迹了。

之后再修改代码,只需要运⾏ 第 5,6 步即可。

相关推荐
橙露4 小时前
数据特征工程:缺失值、异常值、标准化一站式解决方案
人工智能·机器学习
新加坡内哥谈技术4 小时前
OpenAI 的 Codex 团队如何工作并利用 AI
人工智能
星河耀银海4 小时前
人工智能大模型的安全与隐私保护:技术防御与合规实践
人工智能·安全·ai·隐私
love530love4 小时前
Scoop 完整迁移指南:从 C 盘到 D 盘的无缝切换
java·服务器·前端·人工智能·windows·scoop
njsgcs4 小时前
agentscope提取msg+llama_index 查询
人工智能
小和尚同志5 小时前
什么?oh-my-opencode 太重了?那试试 oh-my-opencode-slim
人工智能·aigc
一路往蓝-Anbo5 小时前
第 9 章:Linux 设备树 (DTS) ——屏蔽与独占外设
linux·运维·服务器·人工智能·stm32·嵌入式硬件
飞哥数智坊5 小时前
把模型焊死在芯片上,就能跑出 17,000 tokens/秒?这是一条死路,还是一条新路?
人工智能
多恩Stone6 小时前
【3D-AICG 系列-11】Trellis 2 的 Shape VAE 训练流程梳理
人工智能·pytorch·算法·3d·aigc
tuotali20266 小时前
氢气压缩机技术规范亲测案例分享
人工智能·python