The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I want to undo commit, that I have not yet pushed

Paul Gigliotti
January 13, 2022

Am added a directory to my local sandbox and did a commit, but have not yet pushed.  I now realilze there are some subdirectories in my local sandox that are no longer needed.  I have deleted them from my local area.  I want "delete" the commit, then commit the new sturcture, and then push.

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Fabio Racobaldo _Catworkx_
Community Champion
January 14, 2022

Hi @Paul Gigliotti ,

you have several options to do that.

Please take a look to the following article https://devconnected.com/how-to-remove-files-from-git-commit/

Hope this helps,

Fabio

TAGS
AUG Leaders

Atlassian Community Events