I'm a newbie to git and SourceTree. I've created a repository and following the steps created a textfile and allready committed and pushed it into the repository. Fine. Now I'm trying to copy/paste a folder containning other folders with the classes i'm trying to write, but... still haven't managed how to do it so! I try direct copy/paste into the working tree but it doesn't seem to work!
Can you guys walk me thought this, please!
Thanx so much in advance!
Well, actually those folders contain other code files. I want to upload (sorry for that profane expression here) a folder called, in this case, "libraries" with a few folders inside it that contain code files, the classes headers and its implementations (.cpp and .h). But there's none empty folders here. Is that feasible with a copy/paste?
Yeah, that all sounds fine. If you paste files (or folders that contain files) into your working copy, they should show up in SourceTree as untracked files (untracked have a ? icon). From there, they can be added and committed to the repository, then pushed to remotes.
One possible issue - are you pasting folders inside your repository or beside it? In other words, the folder that you are pasting into should have a (possibly hidden) .git folder.
A git hidden folder is good, that means you're in the right place.
Based on your latest comment, it sounds like you are dropping the folder you want to add onto SourceTree itself. I've never done that, but it appears to be trying to do something different than what you want. Try just dropping the folder into your working copy in Finder.
That was the point! (plus I was looking in the wrong folder with the same name but elsewhere... (a lame user like me the biggest bug :-P ).
Thanx a lot Seth! A lot of good karma to you or like we Catalans say (I'll try to translate the expression for you): "God bless you with a few sons but a lot of attempts!"
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot