GIT for One?

  1. 8 weeks ago

    Chris H

    May 15 Testers, Xojo Pro Grand Rapids Michigan

    I'll probably be flamed for this, however I want to know....

    I use Github religiously, but 99% of the time I'm the only one working on the code. All I really need is to a) know I have an offline backup of my projects, and b) from time to time to be able to go back and pull a chunk of code out of a previously saved version.

    While I generally like GitHub, I do have problems sometimes that leave my repositories in a funky state and are hard to undo.

    I feel like what I really need is TimeMachine and an daily offline backup.

    Does anyone else use something other than GitHub or SVN that is more like what I'm talking about? What has worked for you?

  2. Robin L

    May 15 Xojo Inc Europe (Germany, Rehlingen)

    On Windows I use TortoiseGit (<https://tortoisegit.org/>) and any number of off-site backup services but mostly OneDrive.
    Be sure NOT to be editing your Xojo project files on DropBox or similar services. Doing so can lead to strange results in the IDE (and is not a supported mode of operation for that reason). My project files are local or LAN drives. They are backed up to off-site storage a few times per day.

  3. Markus R

    May 15 Testers, Xojo Pro Europe / Germany / Lower Saxon...

    99% of the time I'm the only one working on the code

    me 99,9%

    i use a backup software that nothing get lost, at least having a copy on other hard drive.
    one click and in some minutes done.

    from time to time i burn my dev drive to dvd.

    usually my project progress is only forward.
    before i break something i use send to zip in case i end up in dead-end.
    and i use send to zip in case i done something complicated.

    additional backup copy i put on usb stick and a few things at ms cloud.

  4. John M

    May 15 Testers, Xojo Pro New York / New Jersey

    @Markus R i use a backup software that nothing get lost, at least having a copy on other hard drive.
    one click and in some minutes done.

    What backup software are you using?

  5. Chris H

    May 15 Testers, Xojo Pro Grand Rapids Michigan

    I am using GitHub and SourceTree, but also I have a TimeMachine backup. I've had to use TimeMachine to retrieve earlier versions a few times and frankly it's more convenient than GitHub.
    It's the offline part that makes me nervous.
    Has anyone used Carbonite?

  6. Tim P

    May 15 Testers, Xojo Pro Rochester, NY
    Edited 8 weeks ago

    @Chris H SourceTree

    This is your problem ;) A very good friend of mine struggled with git, and I blame SourceTree entirely. Try Fork , you might like it better and they make Force Push very easy to do (say if you DGAF what the remote repo says, you want to make this commit!)

    Edit: Added smiley, this post is half-joking. I don't think SourceTree is great software, but I'm not trying to make a definitive statement with this post.

  7. Markus R

    May 15 Testers, Xojo Pro Europe / Germany / Lower Saxon...
    Edited 8 weeks ago

    @John M What backup software are you using?

    Ashampoo Backup Pro 12.
    Ashampoo have daily offers :)
    + i use Snap 11, WinOptimizer 17, Office 2018, Photo Commander 16
    and NOT "her" Anti-Virus ;)

  8. Bob K

    May 15 Testers, Xojo Pro Kansas City

    SourceTree is harder than it should be. Even though I've used it every day for years it easily gets into a weird state. Take Tim's advice and try using it with Fork. YMMV.

    FWIW, source code management is a MUST have for a consultant. Check in early and check in often because it WILL save your bacon at some point. Then, if you do have multiple people working on it at some point it's an easy add and you don't have to worry about it later. A commercial source is a good idea as it's off-site backup though it's not without it's faults (I had a commercial host get attacked with ransomware and the ENTIRE repo was lost and the company folded the next day).

  9. Chris H

    May 15 Testers, Xojo Pro Grand Rapids Michigan

    Immediately I prefer Fork. I'll try to stick with Git for Fork-sales!

  10. brian f

    May 15 Testers, Xojo Pro California

    There is GitHub Desktop GitHub Desktop

  11. Kem T

    May 15 Testers, Xojo Pro, XDC Speakers, MVP Connecticut

    My feeling is that SourceTree is as close to the git command line as you can get in a GUI, meaning it doesn't try to shield you from the things git might do. Once you use it (and git) for a while and understand these idiosyncrasies, you will stop seeing those "funky" states.

    (I appreciate SourceTree for its ability to run custom scripts through the Actions menu, and haven't found another client that allows that.)

    Having said that, if the basic question is, can you do without git and just use some backup scheme, I'd say "no". Sure, create as many backups as you can, but nothing will beat version control for its ability to easily test, and discard, new things, or to see how the heck you got to where you are and spot what you might have inadvertently changed or deleted.

    BTW, I was one of those people who swore that version control was overkill because of my many, many backups. If I could, I'd go back in time and kick that guy.

  12. Justin E

    May 15 Testers, Xojo Pro, XDC Speakers State College, PA
    Edited 8 weeks ago

    Hi Chris - First, your question is a good one, I asked myself the same one years ago before I starting using source code management tools. There's no shame in asking it. ;-)

    +1 on Kem's comments above. I was the only developer an app I created for 13 years where I was constantly duping the source code folder and it was pure chaos to keep track it all. Then I started using SVN and was mostly relieved, and then finally Git solved all of my issues with SVN.

    The tools for Git today have really made getting start with it much easier for sure. When I started using it 5+ years ago it was definitely much more work. I read the Git Pro book front to back many times just to make sure that I fully got it.

    I quickly got over my concern that Git stores the changes in it's data blob files. I was overly concerned with what would happen if the blob got corrupt and I couldn't go back to previous revisions, etc.

    At home I even set up a git server (run ssh on my NAS), init'd the repo with the --bare and --shared switches and was off and never looked back. Then I stopped using my NAS and now trust BitBucket, GitHub and GitLab.

    Tags in Git solved my need to go back to a specific version. The Git bisect function greatly simplified the process of finding the specific commit where I introduced a hard to find bug.

    Have you watched Xojo's webinars on Git (Part I , Part II ) yet? (Yeah, it was me that did them.)

  13. 7 weeks ago

    Rainer G

    May 18 Germany (South)
    Edited 7 weeks ago

    Hello Chris, it’s not only about GIT or SVN. Yes they are all great, but for a project it needs more.
    Try fossil-scm, its small, uses SQLITE and has also a Bugtracker and Wiki included. Maybe u get some ideas to automate it with XOJO. Installing : one exe,....

    Im working in a multi project and and multi developer environment And one of my tasks is, still to write addons to capture all the things around it, and push them into worflows for automatic reporting.
    And a last tip. Use a commt template not only a commit one liner. Benefit : parse them and push them into a database..
    In my case I have then all infos about tickets, cls, and much more. I push it into tables together with meta info, Tagging is a option, but how you handle this in a branching strategy . There a database makes life much easier....

    HTH Rainer

  14. Mike C

    May 18 Testers, Xojo Pro North Carolina (USA)
    Edited 7 weeks ago

    Chris our organization made the switch over to GitKraken - https://www.gitkraken.com/

    I am a single developer on some projects and a contributing member on others. I really enjoy GitHub's new features which makes even working on my solo projects worth the time invested in Github. For example we use the "Project" feature which is a great card based Kanban style board (similar to trello) which integrates great within your issues. Our issues are backlog items, bugs, new features, etc (we make our tags appropriate). I also use the milestone feature which gives you a decent way to set up sprints or a chunk of time that you will accomplish X issues within. It is all integrated together and is very very helpful.

    It specifically helped me visualize the branch movement locally and then to the remote repo. I used SourceTree prior and GitKraken really made Git easier for me.

    GitHub Project Feature:
    -image-

    Git Issue In Detail (Showing Project Link):
    -image-

    HTH,
    Mike

  15. 6 weeks ago

    Tomas J

    May 25 Testers, Xojo Pro Europe (Germany)
    Edited 6 weeks ago

    @Chris H

    What about an own Gitea instance? On your own hardware? Backups are simple then, just rsync the data directory and postgres DB. Why giving Microsoft/ GitHub all your behavioral data and information on which projects, for which customers you're working or not working? I've written this article recently here in xojo forums.

    For me, gitea is game changer and I've started to use it even in non-develeopment tasks like writing articles.

  16. Edited 6 weeks ago

    I never understood the wide-spread love for Git. Yes, if a project has a large number of developers (eg. Linux) it has it advantages. But otherwise for small teams it’s unnecessarily complicated and a lot can go wrong.

    Just use SVN. It’s (still) great and easy to learn / use. One disadvantage: it’s not considered cool.

    Many large corporations use it, especially because it has better security features.

    I used Git at work (because I have to), but SVN at home.

    Recommended:
    Riouxsvn.com for remote SVN hosting.
    XVersion for a client.

or Sign Up to reply!