Dringend-Issues
Dringend-Issues copied to clipboard
How to discard/stash commits?
Hello again,
There are instances that you don't want to push your commits to github, if I had a terminal I would just do git checkout
Thanks
Are you wanting to revert to a previous commit then and then pull from the remote repo? Unfortunately it's not possible to stash changes at present, I'll count that as a feature request though and shall certainly look into it.
Josh
There are two scenarios:
- I want to pull changes from other developer without commiting my changes first. For that I would have to stash my changes, pull from the repo and stash apply my changes on top
- I want to discard all my changes and just revert to the previous commit.
Thanks
Thanks very much for describing the situations. I'll look into implementing stashing and reverting in a future update. Apologies they are not available at present.
Josh (📱)
On 24 Sep 2014, at 02:56, Lord Norlan Mumar [email protected] wrote:
There are two scenarios:
I want to pull changes from other developer without commiting my changes first. For that I would have to stash my changes, pull from the repo and stash apply my changes on top I want to discard all my changes and just revert to the previous commit. Thanks
— Reply to this email directly or view it on GitHub.
I'd like to add my vote to this request. Right now I have two files changed on my iPad, one of which I changed and one of which is an .xcscheme file and so which I can't change. I can't pull, since I have pending changes, and I can't revert, so I'm stuck.
@dgileadi Thanks for adding your vote for the request, I'll make this a priority for the next update. Do you not wish to commit the changes and would rather discard them and revert to the last commit?
Exactly, I'd like the ability to discard uncommitted changes and revert them to the last commit.
On Jun 5, 2015, at 5:04 PM, Joshua Garnham [email protected] wrote:
@dgileadi Thanks for adding your vote for the request, I'll make this a priority for the next update. Do you not wish to commit the changes and would rather discard them and revert to the last commit?
— Reply to this email directly or view it on GitHub.
@dgileadi Got it, will look into this for the next update.