version-control

Should I use a software hosting solution for my personal projects?

…衆ロ難τιáo~ 提交于 2019-12-12 11:55:43
问题 Right now, I keep all of my projects on my laptop. I'm thinking that I shouldn't do this, but instead use a version control system and check them in/out from an external hosting repository (Google Code, SourceForge, etc). I see several benefits here - first, I don't have to worry about losing my code if my computer crashes and burns or my external HDD crashes and burns; second, I can share my code with the world and perhaps even get more help when I need it. Is this a good idea? If so, what

How can a heavyweight checkout be changed to a lightweight checkout in Bazaar?

不羁的心 提交于 2019-12-12 11:28:21
问题 I have a shared repository like so: repo/ mainline featureA featureB I like to do all my development in one place, so I do something like > cd /Development/workingArea > bzr checkout featureA ... > bzr commit -m "Worked on featureA" > bzr switch featureB Over time, I've modified my feature branches to be treeless branches, as I found I was never interacting with those working trees. I would also like to change the checkout in /Development/workingArea so that it is a lightweight checkout, as

Using Xcode to merge current branch into Master

落爺英雄遲暮 提交于 2019-12-12 11:25:24
问题 Is there a quick way to merge the current working branch into the master branch using Xcode? I'm not clear on what the 'Merge' menu option is doing exactly (it's not exactly labelled clearly), but it seems like it is merging whichever branch you select into your current branch - I guess this is useful when you want to test your changes with the latest codebase from someone else. When I finish a feature, I would like to merge it in to the master and then continue working on another feature. It

accurev convert from stream number to stream name

岁酱吖の 提交于 2019-12-12 11:19:52
问题 In Accurev how to convert from stream number to stream name, Say I have stream number is 257 how to know the stream name from ? 回答1: You can run accurev show -fx -p <depot_name> streams and you will get an xml output of streams, including name and number. In the GUI, you can view the stream browser for your depot in split-pane or detailed mode, and that will also show you stream numbers. Hope this helps, ~James 来源: https://stackoverflow.com/questions/2410481/accurev-convert-from-stream-number

How do I automate dependency installation after pulling code from repository?

こ雲淡風輕ζ 提交于 2019-12-12 11:19:35
问题 This question was migrated from Software Engineering Stack Exchange because it can be answered on Stack Overflow. Migrated 4 years ago . My collegue and I develop a small Python application. We use Vagrant to set up development environments. Suppose my collegue introduces a new feature into the application. Feature's implementation requires a new python dependency (3rd party package) and the dependency itself needs some system libraries. If I do not read through all pulled commits carefully I

git merge against an arbitrary base revision (git-svn)

与世无争的帅哥 提交于 2019-12-12 11:03:15
问题 I'm using git-svn for offline development against my company's Subversion repository, which is the project's repository of record. To enable management visibility I'm required to maintain my feature branches in SVN. Sometimes I need to merge changes from our trunk to a feature branch multiple times over the lifetime of the branch. Since I'm required to keep the branch up-to-date in SVN I have to merge; I can't rebase commits once they're pushed to SVN. Further, git svn dcommit removes the

Is there a 3 way merger tool that “understands” common refactoring?

你。 提交于 2019-12-12 11:00:46
问题 When a simple refactoring like “rename field” has been done on one branch it can be very hard to merge the changes into the other branches. (Extract method is much harder as the merge tools don’t seem to match the unchanged blocks well) Now in my dreams , I am thinking of a tool that can record (or work out) what well defined refactoring operations have been done on one branch and then “replay” them on the other branch, rather than trying to merge every line the refactoring has affected. see

Is it possible to revert a commit through GitHub's web interface

我的未来我决定 提交于 2019-12-12 10:49:09
问题 I'm teaching a HTML class on Chromebooks. We're using GitHub for both revision control and I'd like to show my students how to revert a commit. Since we don't have shell access on the Chromebooks I was hoping to find a way to do this online, through the GitHub website. Is that possible? I'm starting to think it might not be. 回答1: You can't. GitHub does not have a web API call to do this. The full API can be found here. What can you do? Since we don't have shell access on the Chromebooks...

git rebase already merged branch?

喜你入骨 提交于 2019-12-12 10:48:55
问题 I created a feature branch from master branch. After that there is a commit [F1] from feature branch. [F1] -- Feature Branch / [M1]-[M2] -- Master Branch After that, feature branch is merged in master branch, and there are two more commits [M3] and [M4] in master branch. [F1] -- Feature Branch / \ [M1]-[M2]-[F1]-[M3]-[M4] -- Master Branch Now I added two more commits to feature branch. [F1]-[F2]-[F3] -- Feature Branch / \ [M1]-[M2]-[F1]-[M3]-[M4] -- Master Branch At this time, should I first

Is Dropbox a valid quick-and-dirty source control solution? [closed]

末鹿安然 提交于 2019-12-12 10:38:09
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . I see many CS students who use Dropbox as an alternative to real SC systems due to its ease of use. Do you use Dropbox as a quick-and