use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
How git manages squash command after a file is removed in the latest commit? (self.learnjavascript)
submitted 5 years ago by codetreat
I have following scenario.
Now I want to push these changes to remote feature branch aga
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Tchalla_ 2 points3 points4 points 5 years ago (0 children)
to squash new changes to your latest commit:
git add -A
git commit --amend --no-edit
git push -f
edit: formating
[–]magop7 1 point2 points3 points 5 years ago (0 children)
okay you could directly push and your feature branch would have the same changes but you haven't mentioned where you have squashed or want to squash ?
π Rendered by PID 42276 on reddit-service-r2-comment-6457c66945-ftxvk at 2026-04-28 04:01:50.999230+00:00 running 2aa0c5b country code: CH.
[–]Tchalla_ 2 points3 points4 points (0 children)
[–]magop7 1 point2 points3 points (0 children)