Just started using Source Tree. Finding it slightly confusing, there's no documentation anywhere telling you how to use this. Be helpful if there was.
When I added files to be staged in the index, how do I commit just the individual files? Because when I try to commit one file out of the host of files in the index it tries to commit the whole lot. I just want to commit the one. But I still want all the other added files to sit in the index for now, so I can add personal commit comments to each single file or multiple lot.
Also is it possible to add and commit a file that is not yet added in one go?
A couple of ways to do this:
Also note that if you don't like to use the staging mode of committing in git, go into Preferences > Git and uncheck the box 'Use the staging area'. From then on the commit mode will always be based on selected files and not the staged changes.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
unchecking 'Use the staging are' worked perfectly. Now I can commit individual files where before all files in the staging area gets committed altogether and no way of unticking them.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not really a SourceTree problem here - if a file is staged in git then it gets committed. If you only want to commit one file,than only add that file - if you've already added the file to staging then remove them form the staging area using the remove button before pushing.
i don't use sourcetree often, so don't know the answer to your second part.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes exactly Git allows you to commit certain files even if they're not staged. But how the hell do you do this in Source Tree??!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can't believe this killer app can do so many things yet can't do a simple job of just committing individual items.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.