Improving My Git Workflow

So I’ve been a small bit of work on Easy Digital Downloads¬†over on Github. I have GitHub for Windows which I like but have run into a small issue when it comes to creating a smooth workflow. So as it stands right now, I have the repository forked to my account. I then open up GitHub for Windows and clone the repository to my local computer.

But, within GitHub for Windows it has a setting for a default directory which I have set to (C:/wamp/www/git-stuff) so the repository gets cloned to there. Then I have to pull from the master EDD repository if there are updates. From there I copy the git-stuff cloned repository over to a WP install for testing. Once I’m done I send the copied repository back over to the git-stuff repository and then upload back to GitHub and then issue a pull request.

What I would really like to do is just clone my forked repository straight into whatever WP install I need, work on it and then just have to upload it straight from there instead of doing the extra steps of copying. I’m sure there is a way to do this through the command line but my knowledge with the command line is lacking unfortunately.

If anybody comes across this and knows a better solution, mind leaving a comment?

4 thoughts on “Improving My Git Workflow

  1. Paul

    when you install github for windows, it should have added a shortcut to git bash. just open that and go to your wp-content/plugins folder.
    cd “/path/to/plugins/folder”
    then do “git clone repo url”
    you cqn still use the GUI after that for commits by scanning for repos and adding that repo to it.

    Reply
  2. Myke

    I like github for windows, but have some of the same issues you do. I like to clone my repos where I want them using TortoiseGit which has nice windows shell integration(right click where you want to clone). Then for the ease of using github for windows you can can simply drag and drop your repo(folder) into the github app and should still magically work. I still have some issues and inconsistencies with it but its something to try ^_^

    http://code.google.com/p/tortoisegit/

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *