git bundle: bundle tags and heads

后端 未结 1 1921
南笙
南笙 2020-11-27 21:58

I develop on several machines. I want to have a repository for each of my projects on each development machine, and I would like to keep them in sync without using a remote

相关标签:
1条回答
  • 2020-11-27 22:29
    git bundle create RA.bundle --branches --tags
    

    would include informations about all tags and all branches.

    git bundle takes a list of arguments, acceptable to git rev-parse and git rev-list (and containing a named ref, see SPECIFYING REFERENCES), that specifies the specific objects and references to transport.

    --branches[=<pattern>]
    

    Pretend as if all the refs in refs/heads are listed on the command line as <commit>.
    If <pattern> is given, limit branches to ones matching given shell glob.
    If pattern lacks ?, , or [, / at the end is implied.

    --tags[=<pattern>]
    

    Pretend as if all the refs in refs/tags are listed on the command line as <commit>.
    If <pattern> is given, limit tags to ones matching given shell glob.
    If pattern lacks ?, , or [, / at the end is implied.

    0 讨论(0)
提交回复
热议问题