Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GIT query

 
Sahil Reddy
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello i am using git . I am stuck in following scenario .....


Assume --> My Local Machine STATE = X
GitHub STATE = Y
Initially --> I made a pull , so X == Y

1. I made some changes in my local machine. ( My Local Machine STATE = X' )
2. I made a commit followed by push on GitHub ( Github STATE = X')
3. Now i want to revert to a state where the repository was before i made my last pull from GitHub. ( I mean i want to switch back to state X and want Github state to be Y again )

How to achieve that ??

Essentially i want to remove the following'

1. Effect of my push on github.
2. My local machine state back to the point where i started making last changes.


 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic