Are commits from local branches that aren't pushed accessible at the remote?

32 Views Asked by At

Say I have the following scenario:

  • Currently on master, do git checkout -b test.
  • Make some commits A and B in test.
  • Go back to master with git checkout master.
  • Make some commits C and D, then push to the remote master.

If this happens, from a security perspective are commits A and B accessible in any way to someone who views the remote repo? E.g., if they do a git clone and then try git checkout A, what would be the result?

0

There are 0 best solutions below