024 Git aliases and git clean

  Рет қаралды 1,269

Dan Gitschooldude

Dan Gitschooldude

Күн бұрын

Пікірлер: 10
@mihai6564
@mihai6564 Жыл бұрын
Good video. Thanks
@jonnykopp
@jonnykopp 4 жыл бұрын
does the super clean remove stashes as well?
@jonnykopp
@jonnykopp 4 жыл бұрын
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?
@DanGitschooldude
@DanGitschooldude 4 жыл бұрын
Git clean (which super-clean uses) does not affect stashes. It only affects untracked files.
@DanGitschooldude
@DanGitschooldude 4 жыл бұрын
@@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!
@wkh4321music
@wkh4321music 4 жыл бұрын
@@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
@DanGitschooldude
@DanGitschooldude 4 жыл бұрын
@@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
@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.
@DanGitschooldude
@DanGitschooldude Жыл бұрын
Thanks! Cheers buddy!
025 Git reset modes
13:58
Dan Gitschooldude
Рет қаралды 4,1 М.
"Fundamentals of Git" Udemy Course Preview and Full Course Giveaway
46:00
Dan Gitschooldude
Рет қаралды 1,7 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,1 МЛН
045 Introduction to Git LFS (Large File Storage)
14:41
Dan Gitschooldude
Рет қаралды 54 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,1 МЛН
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 39 МЛН
How This New Battery is Changing the Game
12:07
Undecided with Matt Ferrell
Рет қаралды 212 М.
The Worst Programming Language Ever - Mark Rendle - NDC Oslo 2021
1:00:41
NDC Conferences
Рет қаралды 1,3 МЛН
047 Introduction to GitLab REST API and python-gitlab
12:37
Dan Gitschooldude
Рет қаралды 20 М.
SpaceX Finally Addresses Important Starship Catch Problem!
20:37
What about it!?
Рет қаралды 415 М.
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 3,1 МЛН