Which remote branch is my git subtree tracking? -
let's there remote master, dev branch, , added subtree:
$ git remote add rem [url] $ git fetch rem $ git subtree add -p=./sub rem/dev
now every time run git subtree pull -p sub
, branch rem/dev fetched , merged sub. ok
but lets later on i forgot whether added master or dev branch. other inferring comparing git logs, there way git tell me branch of rem subtree in sub/ tracking?
subtrees tricky...
there .gittrees
file in root of working directory, content such as:
[subtree "sub"] url = git://example.com/repo.git path = sub branch = master
Comments
Post a Comment