Git tips

Update git version

Integrate a submodule into the parent repository

Git version

  • git --version Display the git version used

Git undoing things

Rebasing in gitkraken

Change remote url without hacking .git/config file

  • git remote set-url origin https://wwwwgithub.com/awesome/awesome-project

Squash commits

What to do in case of problems with git

Clean our local merged branch

Reapply the change after a revert : Revert the revert

Mixing rebase and merge (occasionally)

It can be useful for example if the branch has many commits and we don't want to stash and prevent multiple fix conflicts it seems to be technically possible as explained in this issue

Reference a library by a commit in package.json

Undoing a rebase ! (after an error) even after you pushed to remote

Last updated