Git/Branch: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

17 June 2026

  • curprev 05:3505:35, 17 June 2026Kenneth talk contribs 1,471 bytes +1,471 Created page with "== Create new branch from last 10 commits == https://stackoverflow.com/questions/50992188/how-to-push-a-shallow-clone-to-a-new-repo <pre> # First, shallow-clone the old repo to the depth we want to keep git clone --depth=50 https://...@bitbucket.org/....git # Go into the directory of the clone cd clonedrepo # Once in the clone's repo directory, remove the old origin git remote remove origin # Store the hash of the oldest commit (ie. in this case, the 50th) in a var..."