git
文章平均质量分 54
giantbranch
邮箱:simplelogin.irjqx#aleeas.com
展开
-
git将远程某个仓库的代码合并到本地
下面是合并github上的代码到本地,之后提交到自己团队的git服务器git remote add test_remote https://github.com/test/test.git//获取远端的test_remote/master分支git fetch test_remote master//查看版本差异git log -p master..test_remote/master//合并代码到本地git merge test_remote/master假如有冲突,手动到那个文件处理原创 2021-05-13 15:46:16 · 2379 阅读 · 0 评论 -
git基础教程
首先设置一下你的用户名称和e-mail地址。这是非常重要的,因为每次Git提交都会使用该信息。它被永远的嵌入到了你的提交中//这不一定要写github的账号和邮箱(当然最好写github账户的邮箱)git config --global user.email "your email"git config --global user.name "use english " 一、...原创 2015-10-15 21:17:18 · 1027 阅读 · 0 评论 -
搭建git私有服务器及同步更新自己网站的文件
一、搭建git私有服务器下面以ubuntu为例1.安装git(如果没有安装的话)sudo apt-get install git2.新建一个git用户组sudo groupadd git3.新建git用户-m, --create-home:创建家目录-s, --shell:指定一个shell,下面是不能登录的-d, --home-dir:指定具体原创 2016-03-29 19:06:59 · 4773 阅读 · 0 评论 -
只下载github的某个文件夹
很多时候我们只想下载某个文件夹,而不是整个目录我们可以用svn,先安装apt install subversion比如你要下载这个https://github.com/mozilla/pdf.js/tree/master/test/pdfs,将/tree/master/换成/trunk/即可svn checkout https://github.com/mozilla/pd...原创 2018-04-27 11:47:12 · 2781 阅读 · 0 评论
分享