I created a repository with two developers. First developer created a new branch mysql_login and pushed a file. Other developer created a new branch mysql_register and pushed a file.
Now my questions:
Is it possible to pull another branch so that git branch command displays:
master
mysql_login
mysql_register
My second developer was on branch mysql_register and executed the command:
git pull origin mysql_login
This command pulled files from branch mysql_login and merged into mysql_register
- Is it possible to prevent second developer from pulling or pushing to branch mysql_login?
Like I can prevent users to access/pull/fetch other branches.
I hope I am clear with my questions
Thanks