Welcome To Snipplr


Everyone's Recent Snippets Tagged git



0 1168 posted 15 years ago by level09
If you accidentally exit while doing an interactive rebase, you can clean it with this command.
0 1235 posted 15 years ago by stayce
0 1133 posted 15 years ago by stayce
Note that you don't actually need a temporary branch, you can do this with a 'detached HEAD', but you need to take a note of the commit id generated by the git commit --amend step to supply to the git rebase command rather than using the temporary br...
0 1838 posted 15 years ago by alvarezrilla
0 1094 posted 15 years ago by kmorey
0 1157 posted 15 years ago by nate63179
0 1207 posted 15 years ago by nate63179
make a tarball of only the changed directories in a git repos, since last tag. replace {tagname_last} with any name you siwh to give the tarball replace {tagname_previous} with a git reference (like a tag) from which you want to zip the changes.
0 1668 posted 15 years ago by berkes
This is how to patch changes from svn into git (should work with other vcs as well).
0 1232 posted 15 years ago by narkisr
Squashing --------- WARNING: "git rebase" changes history. Be careful. Google it. git rebase --interactive HEAD~10 (then change all but the first "pick" to "squash") squash the last 10 commits into one big commit
0 2024 posted 15 years ago by jturmel
How to setup a remote git repository via SSH.
0 1497 posted 15 years ago by narkisr
0 962 posted 16 years ago by nate63179
Setup default ignores, aliases, colors, completion and bash prompt in Git These are to be run from Terminal.
1 1418 posted 16 years ago by alvarezrilla
0 1208 posted 16 years ago by paulbooker
Put this into your ~/.bashrc script and you should see the Git/SVN status in your prompt if your working directory is a sandbox.
0 1619 posted 16 years ago by zingo
1 1350 posted 16 years ago by craig0990
1 1146 posted 16 years ago by ericboehs
This is for creating an annotated tag in Git.
0 1376 posted 16 years ago by jturmel
0 1187 posted 16 years ago by hlubek
1 1545 posted 16 years ago by wdso
This example shows how to clean up git's reflogs entries in order save space (see http://www.newartisans.com/blog/2008/04/diving-into-git.html).
0 2539 posted 16 years ago by narkisr
This snippet shows how to restore HEAD after using Git's reset method (see http://gitready.com/2009/01/17/restoring-lost-commits.html?disqus_reply=5271828#comment-5271828).
0 1333 posted 16 years ago by narkisr
0 1372 posted 16 years ago by endorfin
Contents of the .gitignore file used in my XCode projects.
1 1449 posted 17 years ago by scasware