Skip to content

Instantly share code, notes, and snippets.

@lindhe
Last active September 13, 2021 08:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lindhe/d1e249915b90f1c00f03cbf9b9c16ce9 to your computer and use it in GitHub Desktop.
Save lindhe/d1e249915b90f1c00f03cbf9b9c16ce9 to your computer and use it in GitHub Desktop.
Guide to git patches

Guide to sending Git repos and patches

$ git bundle create /tmp/foo-all --all (http://stackoverflow.com/a/2545784/893211)

Andreas Lindhé, [03.03.17 20:08]

  1. Ladda ned repo.git filen.
  2. git clone repo.git git_is_cool
  3. Redan detta är coolt. Jag skickade just en komprimerad variant av ett git-repo, och du klonade från det repot.
  4. Ladda ned patch.diff filen.
  5. I repot: git apply patch.diff

Andreas Lindhé, [03.03.17 20:08] [ File : repo.git ]

Andreas Lindhé, [03.03.17 20:08] [ File : patch.diff ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment