Reputation: 165
I have just recently started git-tfs bridge and seems to work fine for a while until recently:
Here is my workflow:
1) git tfs clone
2) I create my working_branch
3) git checkout working_branch
4) I start to make changes and then I commit)
5) I do a git checkout master, git merge working_branch
6) then do a git tfs checkintool
On the checkin though, I only select a few files and not everything.
7) then I do a git tfs fetch and git rebase tfs/default
How do I commit those files that I unchecked in my previous commit, because it now thinks that there is no commit and it seem tfs/default and master are the same and no changes
Upvotes: 2
Views: 773
Reputation: 4213
I had a similar issue and it looks that the checkin tool actually reverted the changes in git. There is probably a better way to do this, but this is what I did:
Upvotes: 0
Reputation: 1166
According to explanation on git-tfs group, git tfs checkintool is not supposed to be used for partial checkins (and might even lead to losing modifications in files you chose not to commit):
Checkintool is just a convenient tool to make last minute review of your changes and is not supposed to select things to checkin. If you need to divide changes into two chunks - use git's features that is much more powerful than TFS's ones. For example, if you want to divide commit in two, do a soft reset to previous commit and commit things to two commits. Then execute git tfs rcheckin and you'll have these two commits in the TFS as well.
Upvotes: 2
Reputation: 5848
You have to do
git add filename
or git add dir/wildcard before you can commit anything to the local repository.
Upvotes: 1