Sample Header Ad - 728x90

How to create alias with a caret^ command?

2 votes
1 answer
146 views
I have a workflow that first check git diff for specific file and then add it to stage.
git diff ..
^diff^add
I want to give these command a alias but this one doesn't work
alias da="^diff^add"
command not found: ^diff^add
Asked by gary (23 rep)
Oct 14, 2022, 06:50 AM
Last activity: Oct 14, 2022, 08:10 AM