I am new to gitlab. I have successfully created unprotected branches dev & design with master role in project testapp with the following commands:
git checkout -b dev
git checkout -b design
git branch dev
git branch design
git add .
git push -u origin dev
Sounds like your teammate needs to run the
checkout command to track the remote branches. Whether or not he has local
dev/design branches, he just needs to associate them with their corresponding remote branches. This is done by creating a tracking branch:
Tracking branches are local branches that have a direct relationship to a remote branch.
To create new tracking branches locally, you can use the shorthand:
git checkout dev git checkout design
Where the general form is:
git checkout -b [branch] [remotename]/[branch]
git checkout --track origin/dev git checkout --track origin/design
Or, if you'd would rather turn an existing local branch into a tracking branch, check out this post.