Merge specific files from another branch into current branch
git checkout branchname filename filename
git checkout branchname dir1/ dir2/
Quit merge before a commit
git merge --abort
If you have multiple files and you want to accept local/our version, run:
grep -lr '<<<<<<<' . | xargs git checkout --ours
If you have multiple files and you want to accept remote/other-branch version, run:
grep -lr '<<<<<<<' . | xargs git checkout --theirs
View tags
git tag
Add a tag
git tag v1.0.0
Move a tag to a new commit
git tag --force v1.0.0 <ID-of-commit>
git push --force --tags
git merge --no-commit BRANCH_NAME