Git clone will clone remote branch into local. Is there any way to clone a specific branch by myself without switching branches on the remote repository? I think you need to push a revert commit.

If you don't care about other people's clones. How do i save/apply a stash with a name? I don't want to have to look up its index number in git stash list. I tried git stash save my_stash_name, but that only changes the stash. I think this is not a duplicate of git undo last commit as it asks how to delete any commit from a branch. I also think non of the answers actually address this question. They all rewind the last.

I think this is not a duplicate of git undo last commit as it asks how to delete any commit from a branch. I also think non of the answers actually address this question. They all rewind the last. I want to quickly search for a file given its name or part of its name, from the windows command line (not power shell). This is similar to opening explorer and using the search box at the top. I have the following commit history: Head head~ head~2 head~3 git commit --amend modifies the current head commit. But how do i modify head~3?

I have the following commit history: Head head~ head~2 head~3 git commit --amend modifies the current head commit. But how do i modify head~3?