background preloader

Git

Facebook Twitter

SciGit - Home. Blake2-ppc/git-remote-gcrypt. Your dashboard - Gitorious. Git ready » learn git one commit at a time. GIT Howto Index. Here is a collection of mailing list postings made by various people describing how they use git in their workflow.

GIT Howto Index

Imagine that git development is racing along as usual, when our friendly neighborhood maintainer is struck down by a wayward bus. Out of the hordes of suckers (loyal developers), you have been tricked (chosen) to step up as the new maintainer. This howto will show you "how to" do it. This is how-to documentation for people who want to add extension commands to git. It should be read alongside api-builtin.txt. In this article, JC talks about how he rebases the public "pu" branch using the core GIT tools when he updates the "master" branch, and how "rebase" works.

Some tricks to reconstruct blob objects in order to fix a corrupted repository. Sometimes a branch that was already merged to the mainline is later found to be faulty. In this article, JC describes how to separate topic branches. In this article, Sean demonstrates how one can use the subtree merge strategy. Latexdiff and git. I 5 Votes A lot of scientists have latex as their preferred format for writing articles.

Latexdiff and git

A very nice tool when working on latex projects with several people is latexdiff , a perl script that based on two versions of a latex document creates a "diff document" which shows all new (text) additions in blue with curly underline, and all removals in red with a through line. Latexdiff works well with svn and cvs repositories, where you ask latexdiff to simply compare a given file in two given revisions. However, to my knowledge this has not yet been extended to git . In the current form, the script compares the current version against a specified version in the repository. One limitation in latexdiff is that it doesn’t work on more than one latex file. You could probably rewrite the script for e.g. mercurial rather easily. Update: Instead of just leaving the script in pastebin I added it to gitorious, so it will be easier for you to make changes to it.

Vcsh/README.md at master · RichiH/vcsh. Git-reset. Git-reset The Git subcommand git-reset is very frequently used, and is one of very few commonly-used Git commands that can permanently destroy real work.

git-reset

Once work is in the repository, it is almost completely safe from any catastrophe. But git-reset also affects the working tree, and it is quite possible to utterly destroy a day's work by doing git-reset --hard at the wrong time. Unfortunately, the manual is unusually bad, with a huge pile of this stuff: GitHub. Free source code hosting for Git and Mercurial by Bitbucket. Git User’s Manual (for version 1.5.3 or newer) This chapter covers internal details of the Git implementation which probably only Git developers need to understand.

Git User’s Manual (for version 1.5.3 or newer)

A birds-eye view of Git’s source code It is not always easy for new developers to find their way through Git’s source code. This section gives you a little guidance to show where to start. A good place to start is with the contents of the initial commit, with: Git command-line usage cheatsheet/quickref. Master TOC | chapter TOC | license This document describes stuff that's not necessarily done every day.

git command-line usage cheatsheet/quickref

The bare minium stuff like git add/commit/push/checkout/branch etc is not covered. setting up I strongly recommend these settings to make life easier. Git Reference. Book. Everyday GIT With 20 Commands Or So. Git FAQ. What is Git?

Git FAQ

Git is a distributed version control system developed by Junio Hamano and Linus Torvalds. Git does not use a centralized server. Git runs on Linux, BSD, Solaris, Darwin, Windows, Android and other operating systems. Why the 'Git' name? Quoting Linus: "I'm an egotistical bastard, and I name all my projects after myself. ('git' is British slang for "pig headed, think they are always correct, argumentative"). Alternatively, in Linus' own words as the inventor of Git: "git" can mean anything, depending on your mood: Random three-letter combination that is pronounceable, and not actually used by any common UNIX command.

Version control with Git: resources — Fernando Pérez. If you are not using a version control system for all your software development, paper writing, research code execution and tracking of the generated results, you should.

Version control with Git: resources — Fernando Pérez

There is simply no excuse today for not using version control as a mechanism for tracking what you are doing with your source materials and data (be they programming language files, LaTeX/LyX files, plain text, even data results!). Using version control frees you from the madness of having directories with files named mypaper_version2_20100202_revisions_jim_v3_new_new2.tex , for one thing.

It gives you a mechanism to synchronize your work with colleagues without tracking who attached what version when, and a way to seamlessly replicate your work, including its history, across computers. Using a version control system is much, much easier than you think, and today’s best systems are powerful, well documented and free.

Piecemeal staging. Committed 15 Jan 2009 This is a follow up to the comments from yesterday’s article about interactive adding .

piecemeal staging

Readers were begging coverage of powerful git add -p , a shortcut to the patch mode of interactive adding. This command is capable of breaking up changes in files into smaller hunks so you can commit exactly what you want, and not just the whole file. This behavior is very helpful since it allows you to version any “hunk” of text in the file that you’d like. Perhaps that one line of code will break the build on others’ machines or the build server, but just not yours. Let’s go through an example of using it, making changes to our project’s trusty README file again. Diff --git a/README.md b/README.md index 2556dae..45d8b6e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,14 @@ > There is only one way... > ~ Henry Van Dyke +# Project information + +Blah blah blah... + # Want to contribute? So as we can see, we’ve made changes in separate parts of the file. $ command line ruby cheat sheets.

Git-cheat-sheet-medium.png (Imagen PNG, 1100x850 pixels) Gitsvn Move-Rename KDE. Gitignore. Download Git+Hg Client SmartGit/Hg. Hub · the command-line wrapper for git. Jsmits/github-cli.