You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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 !