I made a commit in my local system and pushed it for review..
Now i want to make another commit and push it and make sure the first one is not a dependency. How can i do that?
Please help me with the commands.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have several options. You can simply discard the last commit (you’ll lose it and have to use reflog to recover it unless you save the hash):
Alternatively you can do a soft reset and stash your last commit:
Or you can branch the commit before and work in that branch: