Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

couldn't see the .git/hooks in my local repo or remote bitbucket

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 ?

1 answer

1 accepted

0 votes
Answer accepted
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 14, 2023 • edited

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

Thank-you @Patrik S 

The information helped out

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events