git functions: improve gc() and gsa()