随笔分类 - git
摘要:原文:http://www.tech126.com/git-fetch-pull/Git中从远程的分支获取最新的版本到本地有这样2个命令:1.git fetch:相当于是从远程获取最新版本到本地,不会自动mergegit fetch origin mastergit log -p master..origin/mastergit merge origin/master 以上命令的含义: 首先从远程的origin的master主分支下载最新的版本到origin/master分支上 然后比较本地的master分支和origin/master分支的差别 最后进行合并 上述过程其实可以用以下更清晰的.
阅读全文
摘要:git添加本地分支与远程分支对应关系:git branch --set-upstream master origin/mastergit pull远程分支:git checkout -b origin/git删除本地分支与远程分支:delete a local branchgit branch -d the_local_branchremove a remote branch (if you know what you are doing!)git push origin :the_remote_branchgit显示本地与远程所有分支对应关系:For all branches:git br.
阅读全文
摘要:git config credential.helper storegit config --global credential.helper cache... which tellsgitto keep your password cached in memory for (by default) 15 minutes. You canset a longer timeoutwith:git config --global credential.helper "cache --timeout=3600"windows系统下:Finally, launch a comman
阅读全文
摘要:原文:http://www.juvenxu.com/2010/11/28/a-successful-git-branching-model/本文中我会展示一种开发模型,一年前该模型就已经被我用在所有的项目中(包括工作中的项目和私有项目),结果是非常成功的。我早就想为此写点东西,可直到现在才有时间。本文不会讲述任何项目的细节,只会涉及到分支策略和发布管理。本文使用Git作为所有源码的版本控制工具。为什么是Git?要全面了解Git与其它集中式版本控制系统相比的优劣,可以参考这个页面。这方面的争论可谓是硝烟弥漫。作为一个开发者,所有这些工具中我最钟情于Git。Git的的确确改变了人们考虑合并及分支的
阅读全文
摘要:原文参考1、安装 openssh服务器sudo apt-get install openssh-server openssh-client2、创建个人公钥和私钥在默认用户的主目录路径下,运行以下命令,按照提示创建公钥和私钥ssh-keygen -t rsa默认生成2048位,如果需要提高安全级别,也可以通过下面的命令创建公钥和私钥ssh-keygen -t rsa -b 4096默认情况下,公钥和私钥会保存在~/.ssh目录下,如下所示:id_rsa id_rsa.pub known_hosts3、安装 git服务器sudo apt-get install git-core4、配置 git..
阅读全文
摘要:原文his is a guide for all the Windows users (not me) out there.It will explain how to work with a github repository under windows using TortoiseGit.Let's get started. At this point you should be a collaborator or owner of a github repository.DownloadTortoiseGit.Install it like any other program.
阅读全文
摘要:原文链接Git中从远程的分支获取最新的版本到本地有这样2个命令:1. git fetch:相当于是从远程获取最新版本到本地,不会自动mergegit fetch origin mastergit log -p master..origin/mastergit merge origin/master以上命令的含义: 首先从远程的origin的master主分支下载最新的版本到origin/master分支上 然后比较本地的master分支和origin/master分支的差别 最后进行合并 上述过程其实可以用以下更清晰的方式来进行:git fetch origin master:tmpgit d
阅读全文
摘要:git clone -b makefile git://github.com/wangkangluo1/cc.git
阅读全文
摘要:Update: If you only want to add deleted files, try:git ls-files --deleted | xargs git rm git commit
阅读全文
摘要:原文地址:http://www.diybl.com/course/6_system/linux/linuxjq/20110923/560894.html生成keygen#ssh-keygen 然后复制~/.ssh/id_rsa.pub的内容至github公钥,添加新的公钥,标题任意,公钥的内容为id_rsa.pub的内容完
阅读全文
摘要:git常用命令githu常用命令git checkout -b cgi remotes/origin/cgi 切换到分支git push origin :test 删除test分支原文:http://blog.csdn.net/sunboy_2050/article/details/7529841前面两篇博客Git 版本管理工具和Git 常用命令详解,分别介绍了Git 基础知识和命令用法本文将对Git 命令,做一下全面而系统的简短总结,整理成简洁、明了的图表结构,方便查询一、 Git 常用命令速查git branch 查看本地所有分支git status 查看当前状态git commit ..
阅读全文
摘要:原文地址:http://hi.baidu.com/lingzhixu/blog/item/4a9b830bb08a329fe850cd5b.html本地分支的创建本地分支的来源为执行git checkout -b <branch name> 的那个分支例如现在有两个分支,master和b1master 分支下有一个commit:commit1: add test1.cb1分支下有两个commit:commit2: add test2.ccommit1: add test1.c如果在master分支下checkout,即:git checkout master //进入master分
阅读全文
摘要:原文地址:http://www.cnblogs.com/1-2-3/archive/2010/07/18/git-commands.html完
阅读全文