linux上git的使用

1cd 目录 git pull 拉取最新的代码
2.git checkout branchname 创建分支名
3.git branch显示当前分支
4.git log 查看提交的日志
5.git branch --remote 查看全部的分支
6.git branch -D brabchname 删除分支
7.git stash 保存到暂存区
8.git add . 添加当前文件到暂存区
9.git commit -m 提交到工作区之后
10.git clone 下载代码
11.tar -xvf tar 解压tar文件
12.unzip zip 解压zip文件

猜你喜欢

转载自blog.csdn.net/weixin_37565521/article/details/102973975