gitlab的简单使用
2024-10-19 21:44:42
mkdir folder //创建文件夹
cd folder/
git clone git连接
git status //git当前的状态
ls //当前目录下的所有文件
cd gitFolder 进入Git目录
git cherry 更新当前分支
git log //看日志
git add . (git add *) 添加git下的文件
git commit -m ‘提交’ 本地提交
git pull 本地提交与远端进行比较看是否存在冲突(存在协同开发每次提取代码前都需要跟本地提交进行对比,看是否有冲突)
git branch -a 查看分支
git push (远端的代码跟本地提交无冲突时,直接push到远程)
查看git status 提示nothing 表示提交到远端无错误
删除远程文件(当需要删除不用的远端文件)
cd 路径
git rm -r -cached “folder/”
git commit -m “remove bin folder”
git push
//强退某个版本
git log -3 最近的3个版本的日志
git reset --hard e377f60e28c8b84158 //重置git指针头
git push -f origin master //强制推向master主分支
最新文章
- 安装sass并ruby更改淘宝镜像
- javaweb学习总结十九(http协议概述以及http请求信息分析)
- http://www.cnbc.com/2016/07/12/tensions-in-south-china-sea-to-persist-even-after-court-ruling.html
- form表单转换为Json数据
- Spring Cloud 之 服务注册与发现
- ISP PIPLINE (九_2) Denoise 之 time domain denoise
- nmap比较详细的使用方法
- ZooKeeper Getting Started Guide
- [UE4]把枪打飞addImpulse
- php 分页实现 和 php 大文件上传失败的处理方式
- Codeforces 787D. Legacy 线段树建模+最短路
- 使用python做简单的接口性能测试
- vue.js使用typescript踩坑记
- n-grama
- Educational Codeforces Round 61 (Rated for Div. 2) E. Knapsack
- BottomNavigationView的使用
- HDU 2829 Lawrence(四边形优化DP O(n^2))
- 引爆你的Javascript代码进化 (转)
- bzoj 1011 近似估计
- 算法训练 Pollution Solution(计算几何)