Git
River-D
知之者不如好之者,好之者不如乐之者。
展开
-
常用git和repo命令
常用git和repo命令repo 工具使用手册repo和Git的关系自动同步直到完成的脚本#!/bin/bash# filename: fetch_src.sh# author: counsellorsi=0 # set counter to 0while true # infinite loopdo repo sync # silent curl request to site if [ $? -eq 0 ] then # curl didn'原创 2022-04-14 17:02:07 · 558 阅读 · 1 评论 -
git push is not available when in detached 问题
代码丢失,git提交代码出现Detached HEAD解决估计是git的bug,解决方案:1. git checkout -b temp 创建临时分支;2. add / commit 提交修改代码到临时分支, 一般使用Git GUI工具提交修改,如:GitKraken ;3. git checkout master 切回主分支;4. git merge temp 拉取临时分支代码;5. git branch -d temp 删除临时分支;6. 问题解决;...原创 2022-01-18 15:11:21 · 325 阅读 · 0 评论 -
Git
git教程原创 2020-05-22 20:41:35 · 233 阅读 · 0 评论