Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jm tips #16

Merged
merged 2 commits into from
Mar 21, 2015
Merged

Jm tips #16

merged 2 commits into from
Mar 21, 2015

Conversation

xinsight
Copy link
Contributor

@xinsight xinsight commented Aug 1, 2014

git flight rules is a great idea! Here's a few more git scenarios and solutions.

@svemir
Copy link

svemir commented Oct 2, 2014

👍

@@ -274,3 +274,44 @@ And finally, let's cherry-pick the commit for bug #14:
```
(14)$ git cherry-pick 5ea5173
```
## I want to discard local commits so my branch is the same as one on the server

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the much easy way, just git reset --hard origin/bug24 and you've got the same as one the server

@RichardLitt RichardLitt mentioned this pull request Mar 21, 2015
@RichardLitt RichardLitt merged commit 9f20e13 into k88hudson:master Mar 21, 2015
@RichardLitt
Copy link
Collaborator

Thanks @xinsight. Merged in. @bor, I added a note with your example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants