Thursday, March 08, 2018
Tuesday, August 29, 2017
Monday, July 10, 2017
Thursday, April 20, 2017
Wednesday, January 04, 2017
Wednesday, September 14, 2016
Friday, August 26, 2016
Thursday, July 07, 2016
Wednesday, June 22, 2016
Squashing Git Commits:
1) git checkout [branch_name]
2) git reset master
3) git status // if there are new files, add them for staging
4) git commit -a -m "squashed"
5) git push origin HEAD:[squashed_branch_name] // Notice the new remote branch. Then you can diff the two and ensure the squash worked correctly.
6) git diff // If there were no differences, you can force commit the changes to your branch
7) git push origin [branch_name] -f
1) git checkout [branch_name]
2) git reset master
3) git status // if there are new files, add them for staging
4) git commit -a -m "squashed"
5) git push origin HEAD:[squashed_branch_name] // Notice the new remote branch. Then you can diff the two and ensure the squash worked correctly.
6) git diff // If there were no differences, you can force commit the changes to your branch
7) git push origin [branch_name] -f
Subscribe to:
Posts (Atom)