Open MickeyKay opened 11 years ago
Git may seem rather complex at first, especially if you're coming from another type of SCM system.. I'd suggest you have a browse through this guide to better understand what goes on behind the scenes, once you get the hang of it you'll start to see patterns in the workflow and it will all fall into place. :)
For now though, I'll assume you've created a repo through the desktop app, you've got that published to GitHub and that you're now trying to work with that repo through Sublime (?)...
In a nutshell, to do what you're asking first open your local project folder in ST (the one that holds your .git
folder and .gitignore
file), then the following will apply:
git add
files to a temporary list, cherry picking the changes you want (or simply including all), then you git commit
them to the currently checked out branch, and finally you git push
the branch to it's linked remote origin.git pull
, it's a two step function the fetch
es and then merge
s the linked remote branch with the local one. The fetch
simply gets the changes, while the merge
applies them to your local files.The error you're seeing is essentially Git tell you the currently checked out branch does not have any remote origin to push
it's changes to. This page should help a bit with the git remote add
command.
And yes, if you're using Git, you do have a very good version history system. Be sure to check how tags work in the GitHub web UI ('Releases' button above your code view) once you get to grips with the commits... :)
Hi there,
I've been using ST2 for a while, but am brand new to git. I'd like to integrate it into my workflow, but can't seem to figure things out with this package. I've got a Github account setup, and I have things working with my Mac desktop Github application, but can't for the life of me figure out how to use this package. Any help would be much appreciated. Ideally, I'd like to be able to integrate the following workflow in ST2:
I've tried installing the package, but I can't seem to configure it correctly. For example, when I try to push I get this error message: fatal: No configured push destination.
Either specify the URL from the command-line or configure a remote repository using
and then push using the remote name
The whole point of this is really just to assure that my colleague and I have good version history in case something goes wrong. Is this even the way we should be going about this?
Again, forgive my ignorance - Git is a whole new thing for me :) Any help would be much appreciated, thanks a ton!
All the best, Mickey