- 我的代码是python项目 识别显示为html,不能忍 项目中添加文件.gitattributes,并写入如下内容 *.html linguist-language=Python 1 提交代码后显示正常 参考 修改GitHub上项目语言显示的问题 我的代码是python项目 识别显示为html,不能忍 项目中添加文件.gitattributes,并写入如下内容 *.html linguist-language=Python 1 提交代码后显示正常 参考 修改GitHub上项目语言显示的问题
- git 忽略文件权限修改 # 当前版本库 $ git config core.filemode false # 所有版本库 $ git config --global core.fileMode false 12345 参考 git中忽略文件权限或文件拥有者的改变 git 忽略文件权限修改 # 当前版本库 $ git config core.filemode false # 所有版本库 $ git config --global core.fileMode false 12345 参考 git中忽略文件权限或文件拥有者的改变
- 流程 需求 -> 切换到开发分支 -> 开发 -> 到服务器拉取开发分支 -> 测试 -> 合并到主分支 1234 具体操作 1、开发 我接到开发需求,然后从主分支上切出一个开发分支dev git checkout -b dev 1 进行编码后先推到coding git push -u origin dev 1 2、测... 流程 需求 -> 切换到开发分支 -> 开发 -> 到服务器拉取开发分支 -> 测试 -> 合并到主分支 1234 具体操作 1、开发 我接到开发需求,然后从主分支上切出一个开发分支dev git checkout -b dev 1 进行编码后先推到coding git push -u origin dev 1 2、测...
- 源地址 https://raw.githubusercontent.com/mouday/gt-project/main/gt.sh 加速地址 https://raw.staticdn.net/mouday/gt-project/main/gt.sh https://ghproxy.com/https://raw.githubusercontent.com/moud... 源地址 https://raw.githubusercontent.com/mouday/gt-project/main/gt.sh 加速地址 https://raw.staticdn.net/mouday/gt-project/main/gt.sh https://ghproxy.com/https://raw.githubusercontent.com/moud...
- 文件来源:https://gitignore.io/ Mac 配置 echo "function gi() { curl -sL https://www.gitignore.io/api/\$@ ;}" >> \ ~/.bash_profile && source ~/.bash_profile 12 指令 # 检查配置是否正确,查看... 文件来源:https://gitignore.io/ Mac 配置 echo "function gi() { curl -sL https://www.gitignore.io/api/\$@ ;}" >> \ ~/.bash_profile && source ~/.bash_profile 12 指令 # 检查配置是否正确,查看...
- 查看config文件 # 方式一 $ git config -e # 方式二 $ vim .git/config # 当前git项目下 $ git remote -v # 显示当前所有远程库 123456789 查看config文件 # 方式一 $ git config -e # 方式二 $ vim .git/config # 当前git项目下 $ git remote -v # 显示当前所有远程库 123456789
- Hexo-github-aciton自动部署 文档:https://hexo.io/docs/github-pages.html 添加文件 .github/workflows/pages.yml name: Pages on: push: branches: - master # default branch jobs: pages: runs-on... Hexo-github-aciton自动部署 文档:https://hexo.io/docs/github-pages.html 添加文件 .github/workflows/pages.yml name: Pages on: push: branches: - master # default branch jobs: pages: runs-on...
- 先删除,再添加 # 删除现有远程仓库 git remote rm origin # 添加新远程仓库 git remote add origin <url> # 查看远程仓库的地址 git remote -v 12345678 参考 git 切换远程仓库地址 先删除,再添加 # 删除现有远程仓库 git remote rm origin # 添加新远程仓库 git remote add origin <url> # 查看远程仓库的地址 git remote -v 12345678 参考 git 切换远程仓库地址
- 一、应用登记 https://github.com/settings/applications/new 登记完成后,获取两个参数 客户端 ID(client ID)客户端密钥(client secret) 二、GitHub登录授权 1、网站让用户跳转到 GitHub。 GET https://github.com/login/oauth/authorize?... 一、应用登记 https://github.com/settings/applications/new 登记完成后,获取两个参数 客户端 ID(client ID)客户端密钥(client secret) 二、GitHub登录授权 1、网站让用户跳转到 GitHub。 GET https://github.com/login/oauth/authorize?...
- Git 常用命令速查 git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看远程所有分支 git commit -am "init" 提交并且加注释 git... Git 常用命令速查 git branch 查看本地所有分支 git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支 git branch -r 查看远程所有分支 git commit -am "init" 提交并且加注释 git...
- 一个代码堆栈 常用的命令如下 # 增 git stash # 存储代码,压入代码堆栈 git stash save "message" # 推荐 # 查 git stash list # 查看现有记录 git stash show # 检查不一样的地方 # 删 git stash pop # 弹出最新压入代码堆栈的代码 git stash drop ... 一个代码堆栈 常用的命令如下 # 增 git stash # 存储代码,压入代码堆栈 git stash save "message" # 推荐 # 查 git stash list # 查看现有记录 git stash show # 检查不一样的地方 # 删 git stash pop # 弹出最新压入代码堆栈的代码 git stash drop ...
- 安装 $ yum install expect $ where expect 12 使用 $ expect expect1.3> expect "hi" {send "hello\n"} hi hello 1234 自动拉取git代码 主要解决自动输入账号密码的问题,如果是ssh拉取就不需要使用了 gitpull.exp #!/usr/bin/expe... 安装 $ yum install expect $ where expect 12 使用 $ expect expect1.3> expect "hi" {send "hello\n"} hi hello 1234 自动拉取git代码 主要解决自动输入账号密码的问题,如果是ssh拉取就不需要使用了 gitpull.exp #!/usr/bin/expe...
- github page 创建个人主页 使用帮助:https://pages.github.com/ 我的主页:http://mouday.github.io/ 当然,我绑定了自己的域名:https://www.pengshiyu.com/ 至于域名前面的绿锁头可以参考: 给自己github绑定的域名加个绿锁头https coding page创建个... github page 创建个人主页 使用帮助:https://pages.github.com/ 我的主页:http://mouday.github.io/ 当然,我绑定了自己的域名:https://www.pengshiyu.com/ 至于域名前面的绿锁头可以参考: 给自己github绑定的域名加个绿锁头https coding page创建个...
- 安装教程参阅: Gitlab安装配置及简单问题处理 1、克隆汉化补丁仓库(速度较慢,大概耗时6小时) $ git clone https://gitlab.com/xhang/gitlab.git 1 2、查看当前gitlab版本并且获取对应版本的中文补丁 $ cat /opt/gitlab/embedded/service/gitlab-rails/VERSI... 安装教程参阅: Gitlab安装配置及简单问题处理 1、克隆汉化补丁仓库(速度较慢,大概耗时6小时) $ git clone https://gitlab.com/xhang/gitlab.git 1 2、查看当前gitlab版本并且获取对应版本的中文补丁 $ cat /opt/gitlab/embedded/service/gitlab-rails/VERSI...
- git status 1 报错提示 modified: python_psy_pc (modified content, untracked content) 1 大概意思是xxx目录没有被跟踪。那自然push上去的时候是空的了 解决办法 1、目录下有一个.git 目录,删除.git目录 2、重新git add .就可 参考 modifi... git status 1 报错提示 modified: python_psy_pc (modified content, untracked content) 1 大概意思是xxx目录没有被跟踪。那自然push上去的时候是空的了 解决办法 1、目录下有一个.git 目录,删除.git目录 2、重新git add .就可 参考 modifi...
上滑加载中
推荐直播
-
AI编码实干派,“码”力全开2026/02/26 周四 15:00-16:30
谈宗玮/于邦旭/丁俊卿/陈云亮/王一男
【中国,深圳,2026年2月26日】,以“AI编码实干派,码力全开”为主题的华为云码道(CodeArts)代码智能体新春发布会在线上成功召开。华为云码道公测版正式发布,为开发者和企业提供具备工程化能力的智能编码解决方案。
回顾中 -
华为云码道-玩转OpenClaw,在线养虾2026/03/11 周三 19:00-21:00
刘昱,华为云高级工程师/谈心,华为云技术专家/李海仑,上海圭卓智能科技有限公司CEO
OpenClaw 火爆开发者圈,华为云码道最新推出 Skill ——开发者只需输入一句口令,即可部署一个功能完整的「小龙虾」智能体。直播带你玩转华为云码道,玩转OpenClaw
回顾中 -
华为云码道-AI时代应用开发利器2026/03/18 周三 19:00-20:00
童得力,华为云开发者生态运营总监/姚圣伟,华为云HCDE开发者专家
本次直播由华为专家带你实战应用开发,看华为云码道(CodeArts)代码智能体如何在AI时代让你的创意应用快速落地。更有华为云HCDE开发者专家带你用码道玩转JiuwenClaw,让小艺成为你的AI助理。
回顾中
热门标签