diff --git a/doc/FAQ.md b/doc/FAQ.md index fc8c90e..2f86b4e 100644 --- a/doc/FAQ.md +++ b/doc/FAQ.md @@ -34,6 +34,28 @@ or sudo ss -lpnt | grep LISTEN ``` +## Git + +### Unshallow git + +By example, the repo Odoo use a depth clone. If you need all the clone repo, use this command on right directory: + +```bash +git fetch REMOTE --unshallow +``` + +### Amend several commits in Git to change author + +```bash +git rebase -i HEAD~4 -x "git commit --amend --author 'Author Name ' --no-edit" +``` + +### Cherry-pick a merged commit with conflict + +```bash +git cherry-pick -m 1 --strategy-option theirs HASH +``` + ## git-repo ### error.GitError fatal bad revision diff --git a/doc/GIT_REPO.md b/doc/GIT_REPO.md index ef67346..1dd0a04 100644 --- a/doc/GIT_REPO.md +++ b/doc/GIT_REPO.md @@ -125,11 +125,3 @@ Maybe, some version diverge from your manifest. Simply clean all and relaunch yo ```bash ./script/clean_repo_manifest.sh ``` - -### Unshallow git - -By example, the repo Odoo use a depth clone. If you need all the clone repo, use this command on right directory: - -```bash -git fetch REMOTE --unshallow -```