News for hackers. Stuff that matters.
Re:Modern Git Commands and Features You Should Be Using by yablak on Monday April 01, 2024 @12:40AM (#39890974)
Still amazed there's no "git cp". the workarounds involve rebases and aren't practical.
Re:Modern Git Commands and Features You Should Be Using by cassianoleal on Monday April 01, 2024 @04:02AM (#39891777)
What do you mean by "git cp"? I have that aliased to "cherry-pick".

If you mean to copy a file/directory and stage it in the process (like "git rm" does for deleting), there's no need to rebase. Just copy the thing and stage it.

If it's something else, then the 2 paragraphs above might be a hint towards why there isn't one.