Misc
- list of unmerged files and locally changed files:
(git diff --no-commit-id --name-only origin/$parent..HEAD; git status --porcelain | sed s/^...//) | sort | uniq
- Skip gitlab CI
Source: 1
git push -o ci.skip
- Restore staged file
git restore --staged <file>
- Remove a git commit which has not been pushed
Source: 1
git reset --hard HEAD^