Tag: bitbucket

Git Flow: Automatically Close Feature Branch After Merged to Master

Summary: I would like to stop team members from closing feature branches and only close feature branches after they have been merged into master. I have the following git environment in bitbucket: master (prod) env/stage env/qa env/dev All env branches protected. All feature branches branch off env/dev then when completed, the dev creates a pull […]

git rev-parse –short HEAD doesn't get latest commit

Hey so I am using a post hook like this: <?php file_put_contents(‘deploy.log’, serialize($_POST[‘payload’]), FILE_APPEND); $repo_dir = ‘/home/admin/web/website/repo-fullstack.git’; $web_root_dir = ‘/home/admin/web/website/public_html’; // Full path to git binary is required if git is not in your PHP user’s path. Otherwise just use ‘git’. $git_bin_path = ‘git’; $update = false; // Parse data from Bitbucket hook payload $payload […]

Remove folder in bitbucket

I originally had my eclipse project in Bitbucket in Bitbucket. I changed the package name of the project and attempted to push but it would not let me so I used git push -f and it pushed my new package name but it kept the old one also. I am not sure what happened since […]

ssh agent forwarding not working on ec2

I’m trying to use ssh agent forwarding on my local machine so that I dont have to use my private key on remote server for git clone git@bitbucket.org:username/bucketname.git I have following setup on my machine: $cat ~/.ssh/config Host bitbucket.org IdentityFile ~/.ssh/id_rsa Host 172.28.128.3 ForwardAgent yes and have added my public key to bitbucket site when […]

I have two distinct git repos. How to replace one with newer?

I have my live site on my web server and locally on my development machine. It is one of my git repositories on bitbucket. Using Laravel, they suggested to upgrade to their newest version the recommended way is to create a completely new project, migrate in your old files, test, then deploy. I did that […]

How to copy Rails app with existing git repository?

I want to copy and paste my Rails app, only with different name. Here is my problem. When I go into my new rails app folder its on master branch, but I can’t push anything from there. It belongs to my first(old) app. I should remove git from new app and make entirely new repository, […]

Git repository very large object files

I have a bitbucket repository that used to contain many data (csv) files whose size exceeded 1GB. At some point we decided to remove those files from the repository via gt rm. Now the repository size is reduced. However, some very large git objects exist in the .git folder. Those objects have a size more […]

Bitbucket repository push changes to deploy on Media Temple Grid server development site

Despite searching far and wide, I’ve not come up with a clear solution to this, and Media Temple balked at helping out with any git related issues. I simply want to push commits to my bitbucket repository, then push those changes to my production site at Media Temple. It’s on shared hosting grid server. I […]

BitBucket – submodule not download when using git clone

I’m a new user of Bitbucket and also new with Git. In my project repository I use modules which are in separate folders. But some of this folders are not clickable, they only show the name with an arrow + number. Who can explain me what this means? I understood that this is submodules, but […]

“The requested URL returned error: 500” when heroku tries to install submodules

I’m trying to push my code repo to heroku, the same way I’ve done it 100 times in the past, but this time heroku is running into a problem installing a submodule (the same submodule that has been there for years): fatal: unable to access ‘https://user:password@bitbucket.org/company/my-submodule.git/’: The requested URL returned error: 500 I can still […]

Git Baby is a git and github fan, let's start git clone.