bitbucket

How can I completely replace a bitbucket repository with another repository?

折月煮酒 提交于 2019-11-27 12:24:29
问题 I recently had to make a couple of changes which required rebuilding the repository using hg convert. Unfortunately, this means the bitbucket repo is now inconsistent with the copy I have locally. I don't want to just "blow away" the repo as it exists on bitbucket, because that gets rid of all the other customizations / issue tracking etc. that are associated with the project there. Is it possible to completely wipe the repository from Bitbucket's view of things and push everything from my

Deleting remote master branch, refused due to being current branch

放肆的年华 提交于 2019-11-27 11:18:10
How do I delete a remote master branch from GitHub/Bitbucket? I'm trying: # git push bb --delete master remote: bb/acl: user is allowed. accepted payload.[K remote: error: refusing to delete the current branch: refs/heads/master[K To ssh://git@bitbucket.org/user/reponame.git ! [remote rejected] master (deletion of the current branch prohibited) error: failed to push some refs to 'ssh://git@bitbucket.org/user/reponame.git' Also I tried git push bb :master But all this is not work. VonC Note: for BitBucket , you would change the default branch by accessing the settings of your repo, and changing

'Go Get' Private Repo from Bitbucket

梦想与她 提交于 2019-11-27 10:32:06
问题 So basically, I have an Openshift Project that on Git push, downloads all libraries with 'Go get' and builds the project on-the-fly and so, I have some code I don't want people to see from my own library, and for it to compile properly, the code needs to be taken from github.com or another repo, so I created a private bitbucket.org repo, now, as a public repo it works fine, but when I try to 'Go Get' from my private repo, it gives me 'Forbidden 403' How can I avoid this occurency? Thank you

How to avoid merge-commit hell on GitHub/BitBucket

不想你离开。 提交于 2019-11-27 10:04:49
We're ending up with a lot of commits like this in our repo: Merge branch 'master' of bitbucket.org:user/repo This happens every time a developer syncs his/hers local fork to the top-level repo. Is there anyway to avoid this merge-commit hell from cluttering all the repo log? Can one avoid them when initiating the pull-requests in some way? I know I can do git rebase if this is done in my local VM only, is there any equivalence in the GitHub/BitBucket UI? How do you guys do it? Rebase Feature Branches Before Merging If you want to avoid merge commits, you need to ensure all commits are fast

How much space can your BitBucket account have?

橙三吉。 提交于 2019-11-27 10:03:12
问题 I created a BitBucket account today, and I love the fact that they allow you to have unlimited public/private repositories. However, I didn't find the size limit of your account? Does anyone know where to find it? Github offered 300mb if I remember correctly. 回答1: EDIT #2 (Over three years later, as pointed out by matchew) As of 30 May 2014 There is now a 1gb (soft 2gb hard) limit. read this for more information Here is a link to their FAQ which address this question According to the banner

How to move git repository with all branches from bitbucket to github?

家住魔仙堡 提交于 2019-11-27 09:55:51
What is the best way to move a git repository with all branches and full history from bitbucket to github? Is there a script or a list of commands I have to use? You can refer to the GitHub page " Duplicating a repository " It uses: git clone --mirror : to clone every references (commits, tags, branches) git push --mirror : to push everything That would give: git clone --mirror https://bitbucket.org/exampleuser/repository-to-mirror.git # Make a bare mirrored clone of the repository cd repository-to-mirror.git git remote set-url --push origin https://github.com/exampleuser/mirrored # Set the

Free GIT Server with Web GUI a la BitBucket/GitHub [closed]

女生的网名这么多〃 提交于 2019-11-27 09:52:46
At work I am working with BitBucket. I want something like that for at home to deploy on my Linux Server. So I am looking for: Only 1 or 2 users needed. An GIT Server deployable on Linux A Fancy Web GUI to visualize branches and do other operations (creating repos, branches, merging, statistics). Well documented how to get this all running on Linux/Ubuntu. Free/Low Cost. What are my options. I found so far BitBucket Server for $10/year. What are other options? I would give gitlab a try, the Omnibus package is easy to install and it works fine here: https://about.gitlab.com/ Gitlab Community

Git clone / pull continually freezing at “Store key in cache?”

巧了我就是萌 提交于 2019-11-27 09:10:12
问题 I'm attempting to clone a repo from my BitBucket account to my Windows 10 laptop (running GitBash). I've completed all of the steps necessary to connect (set up my SSH key, verified by successfully SSHing git@bitbucket.org, etc). However, whenever I attempt to clone a repo, the prompt continually hangs up after confirming that I want to cache Bitbucket's key. User@Laptop MINGW64 /C/Repos $ git clone git@bitbucket.org:mygbid/test.git Cloning into 'test'... The server's host key is not cached

Git学习总结(二)---git和bitbucket统计操作

我的梦境 提交于 2019-11-27 06:56:08
一、使用Git命令进行提交后的统计说明: 转载几篇说明较好的文章: git log常用命令以及技巧 Git代码行统计命令集 1、git log 它会列出所有历史记录,最近的排在最上方,显示提交对象的哈希值,作者、提交日期、和提交说明。如果记录过多,则按Page Up、Page Down、↓、↑来控制显示; 2、git log -n (n表示想要显示几条提交记录) 如果不想向上面那样全部显示,可以选择显示前n条。 3、git log --stat 在列出的历史记录中显示每次更新的文件修改统计信息(会列出每个修改的文件,和每个文件修改了多少行,包括增加的减少的,同时,会列出该commit总共修改了多少个文件,增加了多少行,减少了多少行) 4、git log --stat -n 在3的基础上显示前n条数据信息 5、git log --shortstat 内容3的简略形式,去掉了具体修改了那些文件 6、git log --shortstat -n 7、git show 26a6e9b6abf1820 --stat 获取哈希值为26a6e9b6abf1820 的该次提交的内容信息(每个修改的文件,和每个文件修改了多少行,包括增加的减少的,同时,会列出该commit总共修改了多少个文件,增加了多少行,减少了多少行) 8、git show 26a6e9b6abf1820 --shortstat

How to resolve git error: “Updates were rejected because the tip of your current branch is behind”

筅森魡賤 提交于 2019-11-27 06:44:14
I recently started using Git (previously I used subversion but I am now doing some collaborative work on a project that uses bitbucket and git). All has been going well up until today when I find a well meaning colleague has pushed changes to the Master instead of making a branch. This means that when I try to commit I get the error: Updates were rejected because the tip of your current branch is behind I know this should be resolved by making a pull request to re-sync things but I don't want to lose the changes I have made locally and I equally don't want to force the commit and wipe out the