Skip to main content
6 events
when toggle format what by license comment
Nov 23, 2023 at 21:21 comment added bxm Good point about ending up in /, easily rectified. Your question doesn't mention anything about preserving cd - so that wasn't in consideration.
Nov 23, 2023 at 21:14 history edited bxm CC BY-SA 4.0
deleted 66 characters in body
Nov 23, 2023 at 14:27 comment added Flimm The trouble with this approach is that it breaks returning to the previous current working directory using cd - . It will also cd to / if it can't find the .git directory.
Nov 23, 2023 at 13:03 history edited bxm CC BY-SA 4.0
deleted 20 characters in body
Nov 23, 2023 at 12:57 history edited bxm CC BY-SA 4.0
deleted 20 characters in body
Nov 23, 2023 at 12:52 history answered bxm CC BY-SA 4.0