master
, which is the latest development version of MantisBT. If you are planning to work with stable release or other development branches, you will need to set up local tracking branches in your repository.
master-1.3.x
.
git checkout -b master-1.3.x origin/master-1.3.x
Note
/library
rather than a submodule:
$ git checkout old_branch error: The following untracked working tree files would be overwritten by checkout (list of files) Aborting
/tmp
:
sed -rn "s/^.*path\s*=\s*(.*)$/\1/p" .gitmodules |xargs -I{} mv -v {} /tmp git checkout old_branch
git checkout -f old_branch git clean -df
git submodule update
/tmp
back into the empty directories, e.g.
sed -rn "s/^.*path\s*=\s*(.*)$/\1/p" .gitmodules |xargs -n 1 basename |xargs -I{} mv -v /tmp/{} library