branch

Git: cannot checkout branch - error: pathspec '…' did not match any file(s) known to git

匿名 (未验证) 提交于 2019-12-03 08:42:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm not sure why I'm unable to checkout a branch that I had worked on earlier. See the commands below (note: co is an alias for checkout ): ramon@ramon-desktop:~/source/unstilted$ git branch -a * develop feature/datts_right feature/user_controlled_menu feature/user_controlled_site_layouts master remotes/origin/HEAD -> origin/master remotes/origin/develop remotes/origin/feature/datts_right remotes/origin/master ramon@ramon-desktop:~/source/unstilted$ git co feature/user_controlled_site_layouts error: pathspec 'feature/user_controlled_site

Can't checkout git branch started with hyphen (-)

匿名 (未验证) 提交于 2019-12-03 08:39:56
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have cloned a git repository. This repository has a remote branch something like -feature-abc . When I type git checkout -feature-abc , I get: error : unknown switch `e' Any idea how to checkout this branch? 回答1: Try using this syntax: git checkout -- - feature - abc The double hyphen syntax should help git separate the command options from the actual branch name parameter, as I explained before in " Deleting a badly named git branch ". If that doesn't work, you can follow the recipe suggested in " How do I rename a local Git

Branching and remote heads in Mercurial

落花浮王杯 提交于 2019-12-03 08:37:58
问题 I created a new branch using this command: hg branch new_branch After the first commit to the new branch, the default branch becomes inactive. If this is pushed the central repository will have only one head which belongs to the new branch. When my colleague pushes his commits on the default branch, he will get this error: pushing to ssh://... searching for changes abort: push creates new remote heads! (did you forget to merge? use push -f to force) Is there anything bad about forcing the

JPA : How to define @NamedEntityGraph for 3 levels?

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have 3 entities. Branch,Subject,Topic. Branch has list of subjects and Subject has list of topics. Also subjectList and topicList both are lazy. I want to fetch all branch including its subjects and topics in single query. 1. @Entity public class Branch implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; private String name; @OneToMany(mappedBy = "branch") private List<Subject> subjectList; //Getters and Setters } 2. @Entity public class Subject

Git PullRequest job failed. Couldn&#039;t find any revision to build. Verify the repository and branch configuration for this job

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Yesterday my pullrequest jobs failed with the following output: 11:07:41 > git rev-parse origin/${sha1}^{commit} 11:07:41 > git rev-parse ${sha1}^{commit} 11:07:41 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. I have made an investigation and saw that in property ${sha1} there was nothing. When i paste an absolute path to pull request builder like pr/341/merge instead of ${sha1} the build works. What it can be? Git Client Plugin 1.9.0 GitHub API Plugin 1.44 回答1: I spent a long time

Merging Development Branch to Main: There were no changes to merge

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My main branch has some files that have different codes from the same file of development branch. The development branch is the one that has the correct version of these files but when I am trying to merge it to main branch(target); I am getting a message saying There was no changes to merge How can I resolve that problem so that the main branch has the correct version of those files? 回答1: When merging files TFS doesn't just look at the differences between the two branches, but it also keeps track of whether you've ignored these changes in a

Gerrit trigger for Jenkins couldn&#039;t find any revision to build

匿名 (未验证) 提交于 2019-12-03 08:36:05
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have trouble using Jenkins+Gerrit. Here is what I got so far: Gerrit Trigger configuration in Jenkins seems to be ok: When I push a new changeset, Jenkins build is launched. I used this: Jenkins: settings for Gerrit Trigger problems to also be able to launch it "manually". As for my configuration, I have something like this: https://stackoverflow.com/a/18347982/2248987 . Branch Specifier is $GERRIT_BRANCH and Ref Spec is $GERRIT_REFSPEC Gerrit and Git are working fines on their own. Access seems OK too. Here is my issue. When building

ClearCase: change branch type name?

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I used mkbrtype BRANCH_NAME , checked out a few files, had some check-ins, etc. Now I discovered I had a typo in the branch name, and it looks pretty ugly. Is there a way I can change the branch name and still have all the versions/checkouts under it? I'm the only one using it. 回答1: You can rename a brtype with the ct rename command . cleartool rename brtype:oldname@\vob newname But you will need to: change the config spec of your view (non-UCM): no side-effect on checked out files or change the name of the stream, remove and recreate your

Can not create a local and remote branch (tracking) at the same time

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: From Pro Git : you can set up other tracking branches if you wish ― ones that don’t track branches on origin and don’t track the master branch. The simple case is the example you just saw, running git checkout -b [branch] [remotename]/[branch] $ git checkout --track origin/serverfix Branch serverfix set up to track remote branch refs/remotes/origin/serverfix. Switched to a new branch "serverfix" $ git checkout -b sf origin/serverfix Branch sf set up to track remote branch refs/remotes/origin/serverfix. Switched to a new branch "sf" My

libgit2 returned: Refspec &#039;refs/heads/origin/HEAD&#039; not found error in TortoiseGit

匿名 (未验证) 提交于 2019-12-03 08:35:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I got this error when starting up TortoiseGit: Could not get all refs. libgit2 returned: Refspec 'refs/heads/origin/HEAD' not found While annoying, it does not prevent me from using TortoiseGit. However, I'd like to make it go away, because it is, well, annoying . How do I fix this? 回答1: Updated Answer So it turns out that, for the purpose of updating a local repo's view of which branch <remote>/HEAD points to, you can have git automatically fetch that information from the remote and set it locally for you, instead of having to manually set