Great video. Just a quick aside, by default, VS Code hides the .git folder so needed to add the following to my settings: "files.exclude": { "**/.git": false }
Great video. Thank you for this. Me personally, I prefer the approach of creating a wrapper for git, so that i can say: commit "message here" and it automatically adds everything + does any other checks such as linting or tests before commits. This also provides the benefit of a syntax that fits your needs. But thank you for the content
@@GitGuardian Right. It does not need to be super advanced. In my case, for example, I simply add this to my .bashrc: # Automatically stage all, commit, and push in one command function commit() { if [ -z "$1" ]; then echo "Please provide a commit message." return 1 fi git add . git commit -m "$1" push } the above automatically adds all changes to staging, commits with a given message, and pushes. Of course you can customize it to your needs. But the above is a simple bash function.
the "push" is because I also have the following alias: # Using push will resolve to git push origin $(current_branch) function push() { git push origin $(git symbolic-ref --short HEAD) }
Basically cool explanation. Unfortunately I cannot give to my dev team due to the joke. One of the devs is a dad who experience a similar thing at school and it would really hurt him. :(
Great video. Just a quick aside, by default, VS Code hides the .git folder so needed to add the following to my settings:
"files.exclude": {
"**/.git": false
}
Great video dude! Do post on pre-commit framework when you can. Looking forward to it!
Working on the new video now!
Amazing explanation. Thank you!
your video is really valuable to me. Thanks a lot
Great tutorial., explains a lot.
will this work on GitHub desktop ?
nicely explained.
Thanks for y7our feedback
Great video. Thank you for this. Me personally, I prefer the approach of creating a wrapper for git, so that i can say:
commit "message here"
and it automatically adds everything + does any other checks such as linting or tests before commits. This also provides the benefit of a syntax that fits your needs. But thank you for the content
Another good option, perhaps a little more advanced than a git hook. Maybe worth a vedio on this method
@@GitGuardian Right. It does not need to be super advanced. In my case, for example, I simply add this to my .bashrc:
# Automatically stage all, commit, and push in one command
function commit() {
if [ -z "$1" ]; then
echo "Please provide a commit message."
return 1
fi
git add .
git commit -m "$1"
push
}
the above automatically adds all changes to staging, commits with a given message, and pushes. Of course you can customize it to your needs. But the above is a simple bash function.
the "push" is because I also have the following alias:
# Using push will resolve to git push origin $(current_branch)
function push() {
git push origin $(git symbolic-ref --short HEAD)
}
Please do a video on pre-commit framework
Sure thing @eswarm1234
Congratulations for the vídeo
Thanks a lot
Most welcome
Basically cool explanation. Unfortunately I cannot give to my dev team due to the joke. One of the devs is a dad who experience a similar thing at school and it would really hurt him. :(
thanks!
nicely explained.
Thanks for liking