when I did git clone https://Abss-Chandana@bitbucket.org/practice-abss-chandu/explore.git
performed git init
I want to add some stuff to the hooks file but cannot see it in my local repo or remote bitbucket though able to navigate in bash
Can you help to view it local repo or Remote bitbucket repo ?
Hello @Balasri sai chandana ,
Thank you for reaching out to the Atlassian Community!
The git default path for hooks is .git/hooks and this folder is usually a hidden folder, so this is the reason why you do not see it when using file explorer such as Finder, but they do show in bash.
Enabling the view of hidden folder vary depending on your Operating System, so you can check the below instructions for Windows and MacOS :
With that in mind, the content of the ./git/hooks directory isn’t cloned with the rest of your project, nor is it under version control, so you will not be able to see it on the Bitbucket UI. This is because hooks are essentially meant to be local configurations.
However, you have the option to specify a different directory within your repo (outside .git folder) where git will look for the hooks scripts, so you would then be able to commit and push this directory to your repo. To instructions to implement this workaround are outlined in the following article :
Hope that helps! In case you have any questions, please let us know!
Thank you, @Balasri sai chandana !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.