摘要:如果想要删除 Git 项目下的所有 Commit 提交,可以使用以下方法。 创建孤立分支,并切换到该分支: git checkout --orphan latest_branch 2. 暂存所有文件: git add -A 3. 提交所有更改: git commit -am "First Commi
阅读全文
摘要:root@ubuntux86:# git submodule update --init --recursive Cloning into '/work/VisionFive2/buildroot'... fatal: the remote end hung up unexpectedly fata
阅读全文
摘要:方法一、将github上demo的html文件链接复制到,打开下面网址后出现的输入栏中,点击按钮即可。 http://htmlpreview.github.io/ 方法二、在HTML文件的地址前面加上htmlpreview.github.io/? 比如 http://htmlpreview.gith
阅读全文
摘要:采用ie浏览器打开DownGit,不用google https://minhaskamal.github.io/DownGit/#/home
阅读全文
摘要:子模块的添加添加子模块非常简单,命令如下: git submodule add <url> <path> 其中,url为子模块的路径,path为该子模块存储的目录路径。 执行成功后,git status会看到项目中修改了.gitmodules,并增加了一个新文件(为刚刚添加的路径) git diff
阅读全文
摘要:解决 使用Git LFS 在官网 https://git-lfs.github.com/ 下载git-lfs-windows-v2.8.0.exe并安装。 新开一个bash命令行输入git lfs install安装 跟踪你要push的大文件git lfs track "*.h5",这时会生成一个.
阅读全文
摘要:文件编辑中常用快捷键:ctrl+X 离开nano软件,若有修改过的文件会提示是否保存;选择 :yes又提示:file name to write :***.launch ,选择:Ctrl+T 在下一个界面用 “上下左右” 按键 选择要保存的文件名, 然后直接点击 “Enter” 按键即可保存. ct
阅读全文
摘要:No more forks can be created. These forks already exist: Jump to... Step-1: Clone the original repo to your local machine Step-2: Create a new empty r
阅读全文
摘要:参考 https://github.com/liyinchigithub/readme 文字高亮 文字高亮功能能使行内部分文字高亮,使用一对反引号。 语法: `linux` `网络编程` `socket` `epoll` 效果:linux 网络编程 socket epoll 也适合做一篇文章的tag
阅读全文
摘要:git clone 时选择的是SSH链接,使用HTTPS链接地址进行下载就可以啦! 更改url 将远程 URL 从 SSH 切换到 HTTPS 打开 Git Bash。 将当前工作目录更改为您的本地仓库。 列出现有远程仓库以获取要更改的远程仓库的名称。 $ git remote -v > origi
阅读全文
摘要:$ git status On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) error: failed to pus
阅读全文
摘要:1、修改项目名称 在项目的Settings->General->Advanced settings中,有Rename repository的操作,如下图所示把项目名称和路径中的名称同时修改。 2、修改本地仓库 对于本地已经克隆下来的仓库,修改步骤如下:1. 运行git remote查看远程仓库名称,
阅读全文
摘要:根据commit生成patch 可以使用如下两种方式。1. git format-patch -1 commit :生成的patch有统计信息和git的版本信息2. git diff commit_previous commit > mypatch.diff :最原始的diff信息,对于这里的com
阅读全文
摘要:有这样的 目录层次 x/xx/xxx/xxx/ttt.c而 我的 当前位置 是在 x/下 ,执行git diff> test.patch 在test.patch补丁文件里的路径信息是这样的:- - - a/xx/xxx/xxx +++b/xx/xxx/xxx 如果 应用 test.patch 的时候
阅读全文
摘要:git checkout -f rv64-openamp-port Checking out files: 100% (10938/10938), done. Branch 'rv64-openamp-port' set up to track remote branch 'rv64-openamp
阅读全文
摘要:Receiving objects: 100% (94615/94615), 240.39 MiB | 23.44 MiB/s, done. Resolving deltas: 100% (10078/10078), done. warning: remote HEAD refers to none
阅读全文
摘要:进入目录 Enter PIN for authenticator: $ ssh-add -K zhang.ssh Enter PIN for authenticator: Provider "internal" returned failure -1 Unable to load resident
阅读全文
摘要:生成ssh key ssh-keygen -t rsa -C "mag@126.com" -f github.ssh *** Please tell me who you are. root@ubuntu:/home/ubuntu/test/mini-riscv-os# git add . root
阅读全文