撤销创建仓库后第一次提交的 commit
git update-ref -d HEAD
2021年08月27日
2021年08月07日
2021年08月07日
在项目开发中使用git进行代码的管理,每次完成更改上传代码后,还需要登录服务器将代码拉取下来.现在git服务器(gitee/gitlab/github)都会有Webhooks功能,以实现在向git仓库推送/合并等时机让服务器自动拉取新代码.
2021年08月04日
1. 修改本地hosts文件
windows系统:C:\Windows\System32\drivers\etc\hosts
mac/linux系统:/etc/hosts
2. 增加http://github.global.ssl.fastly.net和http://github.com的映射
获取Github相关网站的ip
分别查询github.global.ssl.fastly.net
2021年02月25日
1.Checkout git checkout --orphan latest_branch 2. Add all the files git add -A 3. Commit the changes git commit -am "commit message" 4. Delete the branch git branch -D master 5.Rename the current branch to master git branch -m master 6.Finally, force update your repository git push -f origin master
2021年02月20日
2021年02月18日
在Git中创建分支,是必须有一个父节点的,也就是说必须在已有的分支上来创建新的分支,如果工程已经进行了一段时间,这个时候是无法创建空分支的。但是有时候就是需要创建一个空白的分支。