Get flash to fully experience Pearltrees
首页 资讯 精华 论坛 问答 博客 专栏 群组 更多 ▼ 您还未登录 ! 登录 注册
If the images do not work, you can try the Non-SVG version of this page. SVG images have been disabled. (Re-enable SVG) This page gives brief, visual reference for the most common commands in git.
Notice: some of these commands or flags require git version 1.7.2 . On OS X, upgrade easily with Homebrew : brew install git Show branches, tags in git log $ git log --oneline --decorate
One of the difficult things for a git beginner to understand is how remote branches work. Basically, as git is a distributed version control system, every developer has a full and independent repository. So, how can you pass changes around? In the examples below, we'll consider a remote repository, that we'll call origin, and a local one (that we'll call local). The remote repository has one branch, called master, that has been cloned as origin/master on the local repository.
Tags abiword adam android apt asm ata audio bacula bash bios board-game boot bug busybox bzr c code conference debian debug desktop devel disk dns dpkg dream email embedded firefox font fs fun g1 gdb geode git git scm git-find git-graft go google gpg grub hardware html hw inkscape ion3 ipsec ipv6 ipv6summit.ca irc irssi joke kdb kernel klips kqemu kvm laptop lastfm ldap lighttpd linux lua lvm mail make meta mouse-free mp3 mpd music mutt net nexusone nfs oclug ogre ols oom OOo openswan opteron osx ottawa perl photography power pxe qemu raid redhat rogers ruby sata sbc scm screen script scsi security sheeva shell skype spam squid ssd ssh suse svn tags talk thinkpad ubuntu uml unix urxvt usb uzbl vi video vim vimgit virt vpn vserver web weechat wifi wind wmii wmiirc-lua work x x86 x86emu xen xen-box-setup xfs xterm zsh Posts [ 20130316190507 ] tunnelbroker vs IRC [ 20110517204617 ] how to manually create a 6in4 tunnel [ 20110501202915 ] Presentation slides published!
Git 系列之二：Windows 下 Git 客户端的选择，及 msysGit 各种中文问题的解决 在 Windows 下用 NetBeans 做 PHP 开发，首先想到的是 NetBeans 的插件：NBGit。 评价：能用；若需没有的功能，可以自定义菜单调用自定义 bat 脚本；开发不活跃，使用没有信心。
作者 Alex Blewitt 译者 丁雪丰 发布于 2011年9月6日 领域 过程 & 实践 , 语言 & 开发
Import Straight from the SVN repo ¶ First, we need to fetch a copy of the repository. git svn clone -s -r 40000:HEAD https://svn.parrot.org/parrot # choose some recent-ish commit -s is for --stdlayout which presumes the svn recommended layout for tags, trunk, and branches. -r is for the revision to start taking history from. If you want to include all of the history, just leave that option off, but it will take a very long time, and you really don't need all of it.
Below are the steps I use when working with Git & SVN. Please note, I am in no way a Git or SVN expert, but these are the steps that seem to work for me. 1) Checkout codebase This step only needs to be done once, it will pull down a local copy of the entire history allowing for very fast nagivation of revisions and allow work to be down when no connection to a central repository is available. git svn clone svn://path/to/code/ --stdlayout
A standalone individual developer does not exchange patches with other people, and works alone in a single repository, using the following commands. Examples Use a tarball as a starting point for a new repository.
Moving an organisation from SVN to git involves convincing people to unlearn a lot of SVN stuff they're comfortable with, then learn a lot of new git stuff they don't understand. It takes several months of advocacy and education to move even a small team, and productivity will probably go down before it comes back up. This page presents some tools and tips to help migrate an organisation from SVN to git.
From Git SCM Wiki See also: GitFaq (Frequently Asked Questions) page.