version-control

Workflow best practice with git and github?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 11:04:36
问题 I have been using git and github with my small team of developers for our projects. I can't help but think that we aren't doing it right. I am interested to hear how others use this workflow within their projects. How we use it: We branch before each change, merge back into the master, commit locally and push to our github repo. We then ssh into our testing environment and pull the master branch of the github repo. We haven't quite grasped rebase , fetch or tagging just yet. How I would like

Subclipse conflict resolution

好久不见. 提交于 2019-12-18 11:01:24
问题 Me and my friend using flex builder (eclipse based) with subclipse for a project. Before committing I always update but sometimes I could not commit because of conflicts. Then I use Team->Synchronize with Repository and it shows at the right side latest from repository and at the left side the my current working copy. It has a button to copy from all non-conflicts from right to left (from latest repository to my working copy). But there are still conflicting lines. Sometimes I just want to

How to retain commit gpg-signature after interactive rebase squashing?

北城余情 提交于 2019-12-18 10:50:32
问题 When I want to squash some commits by interactive rebase : git rebase -i HEAD~3 And then: pick cbd03e3 Final commit (signed) s f522f5d bla-bla-bla (signed) s 09a7b7c bla-bla (signed) # Rebase c2e142e..09a7b7c onto c2e142e ... The final commit haven't gpg-signature despite that all of those commits have same signature. Is it possible to retain commit gpg-signature after interactive rebase squash? 回答1: Like Cupcake stated, you can't retain the old signature from the unsquashed commits, but you

How to see the Check-In History of a particular user in TFS?

余生颓废 提交于 2019-12-18 10:37:31
问题 How to see the Check-In History of a particular user in TFS (TFS-2008)? 回答1: Yes. The easy way: download and install Team Foundation Sidekicks (it's free). From the attrice website: 回答2: How to: Find a Changeset in Visual Studio 2010: In Source Control Explorer, on the File menu, point to Source Control, and then click Find Changesets. For some reason newer versions of the article are in a different location. Here are links to newer versions of the article: How to: Find a Changeset in Visual

What documents should be stored in version control and how should they be stored? [closed]

爷,独闯天下 提交于 2019-12-18 10:34:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year . I've found some similar questions (here, here, and here) asking about storing documents into version control. I have a more specific requirement and general question. The specific requirement is that I want to use Git. The more general question is, how should documents (for

Creating branches on an empty project in git

非 Y 不嫁゛ 提交于 2019-12-18 10:32:24
问题 Let's say I am about to implement 3 different features in 3 different files (fileA, fileB an fileC) for a new project of mine. I thought I'd just need to add my (currently empty) project to git: git init and then create 3 different branches: git branch file1_branch git branch file2_branch git branch file3_branch but this doesn't work: fatal: Not a valid object name: 'master'. Why is this? Maybe the problem could be related that even the master branch wasn't created at this point? I tried

Creating branches on an empty project in git

爷,独闯天下 提交于 2019-12-18 10:32:18
问题 Let's say I am about to implement 3 different features in 3 different files (fileA, fileB an fileC) for a new project of mine. I thought I'd just need to add my (currently empty) project to git: git init and then create 3 different branches: git branch file1_branch git branch file2_branch git branch file3_branch but this doesn't work: fatal: Not a valid object name: 'master'. Why is this? Maybe the problem could be related that even the master branch wasn't created at this point? I tried

Getting rid of '… does not point to a valid object' for an old git branch

天大地大妈咪最大 提交于 2019-12-18 10:28:02
问题 I have a fork of a Git repo and my clone appears to have an issue with an old, no longer existant, branch. I keep seeing this message: error: refs/heads/t_1140 does not point to a valid object! I don't have any other messages and the repo works fine. There's no operation that stops me from working on other branches, pushing changes, pulling...etc. I've looked around and there's less than clear instructions on how to get around this issue. I've tried to execute git fsck --full but I see no

Getting rid of '… does not point to a valid object' for an old git branch

僤鯓⒐⒋嵵緔 提交于 2019-12-18 10:27:02
问题 I have a fork of a Git repo and my clone appears to have an issue with an old, no longer existant, branch. I keep seeing this message: error: refs/heads/t_1140 does not point to a valid object! I don't have any other messages and the repo works fine. There's no operation that stops me from working on other branches, pushing changes, pulling...etc. I've looked around and there's less than clear instructions on how to get around this issue. I've tried to execute git fsck --full but I see no

Teach me git commit

孤者浪人 提交于 2019-12-18 10:26:09
问题 I don’t understand git commit at all. It’s been a week since I’ve been using git and all these git with –a, -m, new files, untracked etc is making me totally confused. Tortoisegit is saving me for the moment, but I would like to understand the essence and use it in a way it’s totally easy. When I am in the git command line, it’s rather difficult to selectively commit some files and keep the rest for another commit. How do I make this easy? 回答1: It is quite simple. You need to add the changes