Posts tagged git

Show commits in a graph

  • 23 April 2022
  • Tag: git

Use adog switches:

Read more ...


Merge repos

  • 23 April 2022
  • Tag: git

How to merge repos and keep the history?

Read more ...


Sparse checkout

  • 30 December 2020
  • Tag: git

Read more ...


Interactively discard hunks

  • 17 February 2020
  • Tag: git

With the following command, the staged changes can be unstaged:

Read more ...


Split subtree

  • 20 May 2019
  • Tag: git

Consider you have the following repo:

Read more ...


Line Ending

  • 16 May 2019
  • Tag: git

or either in .gitignore or ./git/config:

Read more ...


Find a lost commit

  • 16 May 2019
  • Tag: git

Git reflog contains the complete history of everything that happened. So if you committed something and then lost the commit due to a reset or a rebase, you can still find the commit by looking into the reflog:

Read more ...