Also, does the alias execute the bash line from your pwd? if so, in a local alias, how would you set the command to be run relative to the project root?
@DanGitschooldude4 жыл бұрын
Git clean (which super-clean uses) does not affect stashes. It only affects untracked files.
@DanGitschooldude4 жыл бұрын
@@jonnykopp I'm not sure I understand your question regarding 'pwd'. Git aliases are not like normal bash aliases, they only exist in the context of git repositories. You can get the project root via `git rev-parse --show-toplevel`, so you can use the value of that command to make sure you run a command relative to the git root directory. Depending on your version of git, 'git root' may also provide the same functionality. Thanks for watching!
@wkh4321music4 жыл бұрын
@@DanGitschooldude Hi Dan - it totally works, it pulls the file for the specified commit, however I see two error messages: 1. "line 0: cd: git: No such file or directory," and 2. "-g: command not found" Do you know why? These videos have really helped me in my job. I've watched over 10 hours of them. Thanks for improving the world and helping your fellow man. -Kerry
@DanGitschooldude4 жыл бұрын
@@wkh4321music Hard to say exactly what's going wrong, but if you don't have bash as the default shell or git isn't on your PATH you might get strange errors like that. For example this likely wont' work at all on Windows. Try starting with very simple bash commands in your alias and add content until it breaks.
@mihaicode2005 Жыл бұрын
Dan, I put a reference to your video in this tutorial kzfaq.info/get/bejne/rM-cgaeZyNLWdI0.html. I hope it helps to promote you.