branch

Force my local master to be origin/master

醉酒当歌 提交于 2019-11-28 17:51:25
I've let master and origin/master get stuck in the sidelines, and am no longer interested in the changes on that branch. I followed these instructions to get my local master pointing to the right place Make the current git branch a master branch git checkout better_branch git merge --strategy=ours master # keep the content of this branch, but record a merge git checkout master git merge better_branch # fast-forward master up to the merge which worked fine except git status gives C:\data\localprojects\Beko2011Azure [master]> git status # On branch master # Your branch and 'origin/master' have

git 常用命令(含删除文件)

夙愿已清 提交于 2019-11-28 17:32:38
git 常用命令(含删除文件) Git 常用操作命令收集: 1) 远程仓库相关命令 检出仓库:$ git clone git ://github.com/jquery/jquery. git 查看远程仓库:$ git remote -v 添加远程仓库:$ git remote add [name] [url] 删除远程仓库:$ git remote rm [name] 修改远程仓库:$ git remote set-url -- push [name][newUrl] 拉取远程仓库:$ git pull [remoteName] [localBranchName] 推送远程仓库:$ git push [remoteName] [localBranchName] 2)分支(branch)操作相关命令 查看本地分支:$ git branch 查看远程分支:$ git branch -r 创建本地分支:$ git branch [name] ----注意新分支创建后不会自动切换为当前分支 切换分支:$ git checkout [name] 创建新分支并立即切换到新分支:$ git checkout -b [name] 删除分支:$ git branch -d [name] ---- -d选项只能删除已经参与了合并的分支,对于未有合并的分支是无法删除的。如果想强制删除一个分支,可以使用

Branching and Merging Strategies

若如初见. 提交于 2019-11-28 17:22:32
问题 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

Efficiency of branching in shaders

时光怂恿深爱的人放手 提交于 2019-11-28 17:12:48
I understand that this question may seem somewhat ungrounded, but if someone knows anything theoretical / has practical experience on this topic, it would be great if you share it. I am attempting to optimize one of my old shaders, which uses a lot of texture lookups. I've got diffuse, normal, specular maps for each of three possible mapping planes and for some faces which are near to the user I also have to apply mapping techniques, which also bring a lot of texture lookups (like parallax occlusion mapping ). Profiling showed that texture lookups are the bottleneck of the shader and I am

Relationship between n git branches

拈花ヽ惹草 提交于 2019-11-28 16:52:19
If I have n git branches, how do I easily show the relationship between these branches? Basically I am interested in seeing a tree of a subset of all the branches in my repository. I am however not interested in all the intermediate commits. E.g.: My repository looks like this: o---o--o A / / o--o--o--o--o--o B \ \ \ \ o--o C \ \ \ \ o--o--o--o--o--o D But probably way more complicated. Now I want to see the relationship between branch A, C and D. Something along the lines of: o A / o--o--o \ \ o---o C \ o--o D Or an equivalent overview. Is this possible, and how? (A graphical tool will be

Subversion - should anyone be developing off the trunk?

好久不见. 提交于 2019-11-28 16:49:28
When using Subversion, should developers be working off the trunk or should the trunk be only used for merges from each individual developer's branch and watched by a continuous integration service? There are two basic strategies: unstable trunk - the trunk always contains the latest code, branches are made to do releases stable trunk - code is developed in branches and checked into the trunk only when fully tested and releases are performed from the trunk Which you use is to certain extent a matter of personal preference. But alongside either of these, individual developers should be using

Find revision in trunk that a branch was created from

只愿长相守 提交于 2019-11-28 16:37:21
I am trying to merge the latest changes from trunk into a branch of my project, but the problem is I don't know what revision of the trunk I checked out that I eventually created the branch from. I would think SVN logged this somewhere. Does anyone know how I can find the revision number? (In other words, the Subversion equivalent of git merge-base master branch-name ) From the command line, the --stop-on-copy flag can be used to help show you where you copied a branch from: svn log --stop-on-copy --limit 1 -r0:HEAD ^/branches/feature The last line of will say something like this: Changed

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

亡梦爱人 提交于 2019-11-28 16:33:36
问题 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 =

How to move some changeset to a new branch in mercurial

房东的猫 提交于 2019-11-28 16:29:20
I want to move a changeset from one branch to another. Basically, I currently have: A -> B -> C -> D # default branch And I want: A # default branch \-> B -> C -> D # some_new_branch Where some_new_branch does not exist yet. I am used to git, so I guess there is a simple "mercurial" way I am missing. One way is to export a patch for B,C,D; update to A; branch; apply patch: hg export -o patch B C D hg update A hg branch branchname hg import patch To remove B,C,D from the default branch, use the mq extension's strip command. crazyscot Sounds a bit like a cherry-pick operation in git. The

Switching branches without touching the working tree?

亡梦爱人 提交于 2019-11-28 16:26:13
问题 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? 回答1: 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: