找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 280|回复: 7

git常用命令

[复制链接]
本帖最后由 beihai2024 于 2024-3-24 12:45 编辑
  1. git clone https://github.com/hanwckf/bl-mt798x.git
复制代码
克隆仓库到本地

  1. git status  #查看当前状态
复制代码

  1. git add Cargo.toml #添加文件
复制代码
  1. git rm Cargo.lock #删除文件
复制代码

  1. git commit -m <message> #提交
复制代码
  1. git push #上传
复制代码



  • CR (carriage return) has the decimal value of 13, or 0x0D in hexadecimal.

  • LF (line feed) has the decimal value of 10, or 0x0A in hexadecimal.





Here crlf = win-style end-of-line marker, lf = unix-style (also used on Mac since Mac OS X).





CRLF是window下面的默认换行符

我的恩山、我的无线 The best wifi forum is right here.
谢谢分享,新人报道
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
git config --global user.name "Your Name" git config --global user.email "youremail@yourdomain.com"
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
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
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
  1. vim .gitignore
复制代码


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
git config --global http.proxy 'socks5h://127.0.0.1:7070'
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
git config
  1. git config --global  credential.helper store
复制代码





我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
  1. git config --global --unset http.proxy
  2. git config --global --unset https.proxy
复制代码


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 18:35

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表