Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged git



1 2 3 Next »
1 582 posted 14 years ago by ericboehs
This is for creating an annotated tag in Git.
0 684 posted 14 years ago by jturmel
0 548 posted 14 years ago by hlubek
1 673 posted 14 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 1811 posted 15 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 596 posted 15 years ago by narkisr
Contents of the .gitignore file used in my XCode projects.
1 668 posted 15 years ago by scasware
Pre 1.6 git has some annoying whitespace checking in it's pre-commit hook. Rather than turn it off I decided to have a go at an automated method to fix the issue. Running the first line lists the files that have problems. The second just adds a se...
0 1181 posted 15 years ago by benpjohnson
Do this from inside a Git repository, and it will do a 'git push' every time you do a 'git commit'. This defeats a bit of the purpose of having a distributed SCM, but it's good for certain situations.
0 848 posted 15 years ago by trey
This command will not delete the .DS_Store files from the file system, just take them out of version control. Before doing this it would be a good idea to setup the repository to ignore .DS_Store files.
1 1428 posted 16 years ago by jachin
1 2 3 Next »