bitbucket

Change version file automatically on commit with git

谁说我不能喝 提交于 2019-12-04 01:32:41
We have our master branch that we merge our features into. I need to be able to increment our version on commit/merge to the master automatically as a part of the merge. Is there a way i can do this so that the upped version is committed as a part of this commit without having to have an automatic 're checkout, change, commit' that will effectively double all our commits? You can use git hooks for that. The pre-commit hook specifically. You can create one from the sample in .git/hooks/pre-commit.sample by removing the .sample suffix and editing it. The content of pre-commit will be executed

Bitbucket is alarming that my git repo is too large but I cannot confirm large files

柔情痞子 提交于 2019-12-04 00:58:13
问题 Bitbucket is alarming that my Git repository is over 1 GB. Actually, in Repository details page it says it is 1.7 GB . That's crazy. I must have included large data files in the version control. My local repository is in fact 10 GB , which means that at least I have been using .gitignore successfully to some extent to exclude big files from version control. Next, I followed the tutorial here https://confluence.atlassian.com/display/BITBUCKET/Reduce+repository+size and tried to delete unused

Jenkins git submodule update fails

时光总嘲笑我的痴心妄想 提交于 2019-12-04 00:57:56
I have a git repo which has one submodule. Both belong to a team on BitBucket. My jenkins machine is a AWS windows server with the git plugin. I am using SSH keys for authentication. I have three jenkins jobs. One clones the main repo. This is successful. One clones the second repo on its own (the repo which will be used as a submodule). This is also successful. In my third build job I tell jenkins to recursively update the submodules. This fails and says public-key error. How can this be the case if I can clone the repo on its own? Console output below: Started by user anonymous Building on

Multiple urls of git submodule - per remote submodules

扶醉桌前 提交于 2019-12-03 23:25:43
I have git repository with two remotes (github and bitbucket). Inside I have submodule, that points accordingly to another github/bitbucket repo. But in the definition of submodule is url, that is hardcoded. Can I have two of them? Or one per remote? So that my main repo on github points to submodule on github. And my main repo on Bitbucket points to submodule on bitbucket? [submodule "programs/mgr-nancy-demo"] path = programs/mgr-nancy-demo url = git@github.com:wedkarz/mgr-nancy-demo.git It seems you can use relative URLs for submodules . From git help submodules : COMMANDS add [...]

Configure Jenkins to connect to BitBucket

两盒软妹~` 提交于 2019-12-03 22:59:18
问题 I'm trying to configure Jenkins on my Mac Mini in order to pull the code of my iPhone App from my BitBucket repository. In the "Xcode plugin" configuration area I have tried to add the git address of my project but it keeps on failing. After a research it looks like I have to use an ssh deployment key to connect Bitbucket and Jenkins. What I have done so far: ssh-keygen -t rsa pbcopy < /Users/jenkins/.ssh/id_rsa.pub and I added this SSH key to my BitBucket profile. Unfortunately it still

How to delete remote commit from bitbucket mercurial repository

Deadly 提交于 2019-12-03 22:32:52
How to delete a remote commit from bitbucket mercurial repository? Findings: I could not found "Repository management" in the "Admin" section. which is mentioned in this answer . Is this feature deprecated/dropped from bitbucket? If not where it is? Note that I am owner of the repository. Note for expert! only: Remember I have already pushed my commit to bitbucket. I know deleting commit is not good, I am not interested to a backout my history by adding an extra commit. Moreover I can ensure you that someone will strip the commit manually from every local clone of this repo. So you don't have

Git asks for password for each commit and pull

社会主义新天地 提交于 2019-12-03 21:50:16
I am using Visual Studio 2012 with Git extension. I am using bit-bucket for storing project. Each and every time - whenever I want to either push or pull Git ask me for account password in windows 8. Thanks. You can use gitcredentials and tell it to remember your password for some time git config --global credential.helper "cache --timeout=time_in_seconds" for example if you want it to remember for the next day it would be 60 * 60 * 24 = 86400 seconds, so the command would look like git config --global credential.helper "cache --timeout=86400" Hope this helps. 来源: https://stackoverflow.com

GIT: `error: unable to find <commit>` and `fatal: object <commit> not found` on pull

杀马特。学长 韩版系。学妹 提交于 2019-12-03 21:43:37
We have a repo in Bitbucket, which we use as a central repo: we update it via pull requests or directly by pushing changes, and we synchronize the last changes in remote servers by pulling from it. This has been working like a charm for about a year, but now we are not able to pull changes from this repo to update a remote server: $ git pull origin remote: Total 0 (delta 0), reused 0 (delta 0) error: unable to find a1354e341c6773997c31a109e615d1bf9acb0119 fatal: object a1354e341c6773997c31a109e615d1bf9acb0119 not found Nonetheless, this object/commit is available from Bitbucket and also in my

GIT Fatal : refusing to merge unrelated histories

让人想犯罪 __ 提交于 2019-12-03 19:07:21
问题 I see: $ git pull origin master From https://bitbucket.org/tecgenome/chl-v2.0-html * branch master -> FETCH_HEAD fatal: refusing to merge unrelated histories How can I avoid or get past that error message? 回答1: Since Git 2.9 (April 2016), you can try: git pull --allow-unrelated-histories origin master But check why those branches are no longer common though. May be there was a force push rewritting all the history of origin/master . In which case, if you don't have local commits of your own,

How to manipulate Bitbucket repository with token?

时光怂恿深爱的人放手 提交于 2019-12-03 18:40:40
问题 I followed this documentation to get a token value and a token secret from bitbucket: https://confluence.atlassian.com/display/BITBUCKET/OAuth+on+Bitbucket After that I want to push/pull to a given repo by using that token. At Github I can use the token like this way: https://help.github.com/articles/git-automation-with-oauth-tokens#step-2-clone-a-repository My question is how can I use this kind of http authorization at bitbucket (mercurial/git)? 回答1: This BitBucket page mentions: We