branch

what determines default branch when cloning from git bare repository

大憨熊 提交于 2019-12-08 07:18:59
问题 I'm trying to change the default branch when cloning from a git bare repo using git 1.8.3.1 from yum install. I had always assumed that the way to do this would be to change the reference inside the HEAD file of the remote repo, and several SO answers seem to confirm this. However, I'm finding the value of HEAD in the remote bare repo to have no effect . Even though my remote repo has this value in HEAD: ref: refs/heads/secondbranch I'm still defaulted to firstbranch branch when I clone! Any

Pushing updates to a pruned Mercurial branch

痞子三分冷 提交于 2019-12-08 06:52:42
问题 I have two related repositories, a master, which contains a number of sensitive files which must not be leaked, and a 'public' version, created with hg convert with --filemap to exclude the sensitive files and directories. I would like further updates to the master that don't affect the sensitive files to be pushable to the slave, and updates to the slave to be pullable by the master. Right now this doesn't happen, as they are considered 'unrelated' repositories If this is possible with Git,

Pushed to git bare repo and I can't pull changes from other machines

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 06:31:49
问题 I have a git repo on my Dropbox, I am using Ubuntu, I have a project which I've cloned via git clone blablabla/Dropbox/blablabla.git and I've pushed for like 500 times to that but all I can pull now from another machine is like first 400 also my blablabla/Dropbox/blablabla.git file is smaller than my local /var/www/blablabla/.git so I guess some files aren pushed and so it seems when I've cloned blablabla/Dropbox/blablabla.git from another machine so how can I properly push now on the first

github sync from fork

℡╲_俬逩灬. 提交于 2019-12-08 05:58:00
问题 I am pretty new to github. I made a fork from a third party, then I modified several files in this fork and committed to my fork. Based on my fork, I made a branch. I noted there are some update in upstream (the third party source which I made the fork), so I sync my fork. Now how do I push the changes from my fork to my branch ? Another situation is after I made some changes in my branch, how do I push them back to my fork? 回答1: You need to do a: git request-pull original_repo <repo_url>

How to replace a branch in subversion?

人盡茶涼 提交于 2019-12-08 05:52:26
问题 I'v never used branching till yesterday so I didn't knew that I should make the branch our of the trunk. So I branched a subfolder and this caused some side effects like accidental switching the trunk to branch ... this resulted in overwriting the trunk with the subfolder and deleting everything else inside the trunk = destroying my working copy ;/ Now I'm in the situation that I want to override this problematic branch with my working copy. How can this be performed? I'm using Tortoise SVN.

Git branch experiment

六月ゝ 毕业季﹏ 提交于 2019-12-08 04:52:56
问题 Here's an interesting experiment with using Git. Think of Github's ‘pages’ feature: I write a program in one branch (e.g. master ), and a documentation website is kept in another, entirely unrelated branch (e.g. gh-pages ). I can generate documentation in HTML format from the code in my master -branch, but I want to publish this as part of my documentation website in the gh-pages branch. How could I intelligently generate my docs from my code in master , move it to my gh-pages branch and

Cannot open FETCH_HEAD after renaming a branch

社会主义新天地 提交于 2019-12-08 03:33:17
问题 After having renaming the 'master' branch (using Sourcetree), I can't fetch anymore the changes done in the remote repository. I get the error: error: cannot open .git/FETCH_HEAD: Permission denied When I open this file, I see that the referenced branch is still set toward branch 'master' . Taking a look at the remote repository, I saw that a branch with named 'master' still exists, in addition to the renamed branch where I merged my last changes. I think there have got a problem somewhere

How to delete a clearcase branch with a single command?

不羁的心 提交于 2019-12-08 03:26:26
I've accidentally created a branch with the wrong config spec and I've made a merge in there that wasn't meant to be done. Is there a way to remove this branch like it never existed, with one and only command? There are no checked-out files in the branch. I could go through all files and do it manually since there are only 3 files that were merged. But what if there were 3000 instead of 3? You can try and delete the byrtpe (branch type) with cleartool rmtype brtype:xxx . That is possible only if you are talking about a brand new branch, which was used only in this instance (that is, where you

Deleting git branch loses audit

霸气de小男生 提交于 2019-12-08 02:49:51
问题 If a branch has been deleted in git is it still possible to identify whether specific commits were made on that deleted branch? From what I have found so far - git branches are merely pointers so deleting them would lose the that specific part of the audit history. Hoping that I can be proven wrong on this. thanks, 回答1: git branches are merely pointers Yes and which is exactly why deleting them would delete just the pointer. If you have merged the branch to your mainline, you no longer need

Jenkins Multibranch Pipelines - Configuring properties in branches?

ぐ巨炮叔叔 提交于 2019-12-08 02:01:14
问题 We have successfully set up a build pipeline using the Jenkins Multibranch Pipeline Plugin, which works great most of the time, but we have this problem which nags us: The Jenkinsfile contains a set of properties, and these also show up in the UI, but how can I set up default values for individual branches? This is how the properties definitions look like in our Jenkinsfile : properties([ parameters([ string(defaultValue: 'somevalue', description: 'Some description', name: 'SOME_VALUE'),