branch

Rename branch on github website?

人走茶凉 提交于 2019-11-29 23:36:09
I don't know how to run command line stuff, well I just don't have environment. So I'm trying to rename a branch on the github website. It was default named to "patch-1". Is it possible to rename this on the site? I think you can, just create a new branch with the new name, and delete the old one on github. More detail you can see here . I just did it without downloading any code to my laptop only using github site. The solution looks the same as @swcool, but I want to add about default branch. In my case, the name of renaming branch did not exist. Change the default branch (to the old branch

代码检视工具Gerrit的日常使用

半城伤御伤魂 提交于 2019-11-29 22:57:45
1, Gerrit是什么? Gerrit实际上一个Git服务器,它为在其服务器上托管的Git仓库提供一系列权限控制,以及一个用来做Code Review是Web前台页面。当然,其主要功能就是用来做Code Review。 2, Gerrit用户配置 Email激活 Gerrit账户的设置界面,点击“Contact Information”进入Email Register页面,输入自己的邮箱账户( 此邮箱需要与自己的Git配置一致 )。可以配置多个Email账号。 Contact Information SSH key配置 通过以下命令生成并读取本机ssh key: ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub Copy key的内容,在Gerrit账户的设置页面“SSH Public Key”中加入即可。 ssh-key 3, Gerrit日常使用 3.1 获取代码库 登录Gerrit后在Projects-->List, 选择相应工程your_project,进入该工程的General界面。 选中“clone with commit-msg hook”和“SSH”: git clone ssh://your_account@review.xxxxx.com:29418/your_project && scp -p -P 29418 your

TFS 2010: How to produce a changelog (ie. list of work items) between two releases of the application using labels?

耗尽温柔 提交于 2019-11-29 22:39:56
I'm looking for a way to automatically produce a changelog (actually a list of workitems) between two releases of my application. I have two versions of my application, v1 and v2, each is identified by a label in TFS 2010 (LABEL1 and LABEL2) that I manually created before building the setups of my app. I have a branching system, which means I have a trunk were most of bugs are fixed, and a branch where patches are applied mostly using merges from the trunk (but there are also some fixes on the branch only that do not concern the trunk). The two versions of my application (v1 and v2) are

05_get分支管理

梦想与她 提交于 2019-11-29 22:39:21
分支管理 新建git仓库时会默认创建一个分支 master ,它叫主分支 1. 查看分支列表和当前在哪个分支下工作: git branch 2. 创建分支: git branch 分支名称 git branch [参数] # 后面不接参数就是查看分支,接上参数就是创建分支 3. 切换分支: git checkout 分支名称 4. 创建分支并切换到创建的分支上 git checkout -b 分支名称 5. 删除分支 git branch -d 要删除的分支名称 6. 合并分支 git merge 要把哪个分支合并到当前分支 # 一般执行快速合并 git merge -no-ff -m '合并版本记录' 要合并的分支名称 # 禁用快速合并 # 这样查看版本记录能够把从哪合并的显示出来,能够更清楚的看到这个版本记录的信息 git log --graph --pretty=oneline 来源: https://www.cnblogs.com/nichengshishaonian/p/11538242.html

Mercurial clone from a branch

纵饮孤独 提交于 2019-11-29 22:05:20
We have a repository with three named branches, I wanted to clone one of the branches. Is there a mercurial command to do that? If I provide the path (of branch) with hg clone I get 404 error. hg clone http://your/repo -r branchname should do the trick. Benjamin's right. But is that really what you want to do? In particular, you'll only get the changesets needed to make up that branch, and nothing else - and that would, for example, prevent you from pulling changesets in from the trunk or other branches. You might well be better off just cloning the entire repository and then simply working in

Your configuration specifies to merge with the <branch name> from the remote, but no such ref was fetched.?

杀马特。学长 韩版系。学妹 提交于 2019-11-29 21:09:08
I am getting this error for pull: Your configuration specifies to merge with the ref 'refs/heads/feature/Sprint4/ABC-123-Branch' from the remote, but no such ref was fetched. This error is not coming for any other branch. The special thing about this branch is that it is created from the previous commit of another branch. My config file looks like: [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true hideDotFiles = dotGitOnly [remote "origin"] url = <url here> fetch = +refs/heads/*:refs/remotes/origin/* [branch "master"]

In TFS, should I label or create a branch for a production release?

社会主义新天地 提交于 2019-11-29 21:08:05
When making a deployment to production, should I mark my code with a label or create a branch for the code that's in production? In TFS, I would have a Release branch with a label identifying the specific version being released to production. Which would imply you have other branches may I suggest the following Three major branches: Main, Develop, & Release. One Hotfix branch for your current fire. 0 to N Major-Feature branches to contain the disruption of development. Details Main Branch Contains the latest stable builds Tag/Label each release Develop Branch Branched from the Main Where most

Switching branches without touching the working tree?

谁说胖子不能爱 提交于 2019-11-29 21:01:10
I am currently on a debug branch, and would like to switch to the master branch, without modifying the working tree (leave it the way it is in the debug branch), so I can commit some of the changes into the master branch. Is there a way to do this? CB Bailey This answer uses low-level "plumbing" commands. Be careful. If you prefer " porcelain " commands, go with this answer which produces the same results. You can reset your head to point at master without changing the index or working tree with: git symbolic-ref HEAD refs/heads/master You should probably reset the index so that you can

Branching and Merging Strategies

强颜欢笑 提交于 2019-11-29 20:44:25
I have been tasked with coming up with a strategy for branching, merging and releasing over the next 6 months. The complication comes from the fact the we will be running multiple projects all with different code changes and different release dates but approximately the same development start dates. At present we are using VSS for code management, but are aware that it will probably cause some issues and will be migrating to TFS before new development starts. What strategies should I be employing and what things should I be considering before setting a plan down? Sorry if this is vague, feel

What is a “stale” git branch?

吃可爱长大的小学妹 提交于 2019-11-29 20:21:33
A "Stale" git branch is a term I've heard a lot. I know it has something to do with branches which are regarded as less useful or useless, but cannot find an exact definition. What is a "stale" git branch? VonC The oldest reference to "stale" is found in commit e194cd1 (Jan. 2007, Git 1.5.0), which detected " stale tracking branches in remote ": when tracking a branch which was removed by the remote system. Hence git remote prune . That is the main definition for stale branch: a remote tracking branch which doesn't track anything (because the actual branch on the remote repo is gone) git