Reputation: 181
Is there any command in Git to know who the BitBucket account owner is for a local folder that use Git?, I have always had to do add
, commit
and push
to know the BitBucket account owner. (I can find the owner in the URL when I'm prompted for a password during git push
.)
I would like to know if there is a simple way to do it without pushing whatever changed.
Upvotes: 1
Views: 1215
Reputation: 10227
(Note that BitBucket owners are based on the repo, not on folder.)
The URL you see during the git push
command is attached to the Git remote, and is how Git determines where to push your commits.
To see this URL without pushing, do:
git remote -v
That should give you some output like this:
origin [email protected]/<username>/<repository>.git
Where <username>
is the name of the account owner, and <repository>
is the name of the repository.
Upvotes: 1