Is it possible to fast forward another branch without checking it out?
Git provides the update-ref command for this purpose
git update-ref A B
Note: This command is one of the lower-level Git commands and does not provide any safeguards for you to keep from screwing yourself up. If B is not a fast-forward of A it will still update A, potentially making commits unreachable and subject to garbage collection.