Imagine I do a little commit "B" few days ago. In that commit was file "labels.cfg".
There was many other commits since commit "B". e.g now I am at commit "F".
I want revert changes I made in "labels.cfg" in commit "B". I have another changes beetwen "B" and "F" commits in "labels.cfg" and I want to save them.
How can I do it?
You can! The command you want is
git revert. If the commit id for commit "B" is
abad1, you can simply run:
git revert abad1
To create a new commit that reverts the changes introduced to
If you don't want to commit the revert straight away you can pass the
-n flag to apply the reverse patch to your working copy:
git revert -n abad1
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs