How can I send a pull request via command line in Bitbucket?

Bitbucket with it’s RESTful API 2.0 supports managing pull requests without interface. In CLI you can request it with CURL. This older version of the documentation has better interface details. Get pull request data with CURL To get full data about specific pull request: $ curl –user s3m3n:bbpassword https://bitbucket.org/api/2.0/repositories/s3m3n/reponame/pullrequests/4 In return I get JSON with … Read more

Git error: src refspec master does not match any error: failed to push some refs [duplicate]

One classic root cause for this message is: when the repo has been initialized (git init lis4368/assignments), but no commit has ever been made Ie, if you don’t have added and committed at least once, there won’t be a local master branch to push to. Try first to create a commit: either by adding (git … Read more

How do I get Jenkins to build on push to a BitBucket git repository?

Due to the Jenkins Hook of Bitbucket is not working at all for me and I have different Jenkins projects for different branches I had come to this solution: Install Bitbucket Plugin at your Jenkins Add a normal Post as Hook to your Bitbucket repository (Settings -> Hooks) and use following url: https://YOUR.JENKINS.SERVER:PORT/bitbucket-hook/ and if … Read more

How safe is it to host sensitive data on repository sites like github, bitbucket, etc.? [duplicate]

As always, it depends 🙂 There can be two different meanings of “safety”: Can I trust the hoster to keep my stuff (intellectual property, company secrets…) private? What happens to my code if the hoster suddenly goes out of service? For 1., there is no 100% guarantee. Of course, the big hosters like GitHub and … Read more

Unknown SSL protocol error in connection

You can get more information with # Windows set GIT_CURL_VERBOSE=1 set GIT_TRACE_PACKET=2 # Unix export GIT_CURL_VERBOSE=1 export GIT_TRACE_PACKET=2 And then try a git push. Double-check your proxy settings if you have one. Note: git 2.8 (March 2016) adds more information on an error 35: See commit 0054045 (14 Feb 2016) by Shawn Pearce (spearce). (Merged … Read more

How to mark an issue as resolved from the commit log?

Bitbucket already supports marking issues on commit using the Issues service. The issues service scans commit messages for commands which will automatically change the state of the relevant issue on the tracker. [snip] Examples: “… fixes #4711 …” # marks issue as resolved “… reopening bug 4711…” # marks issue as open “… refs ticket … Read more

How to undo a merge on Bitbucket?

You need to first clone the repository on your local system (you can get the repo URL in SSH or HTTPS format from the “Overview” page of the repository in Bitbucket): git clone git@bitbucket.org:my/repo.git -or- git clone https://my@bitbucket.org/my/repo.git git checkout master .. then revert the most recent commit. First list the available commits with: git … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)