Good day ALX SE Engineers,
Are Programmers Lazy because they always apply the easiest route?
This will save you few seconds
create a file named push with this script
#!/bin/bash
git add .
git commit -m "${*:1}"
git push
@alx_africa @julienbarbier42
๐งต
Are Programmers Lazy because they always apply the easiest route?
This will save you few seconds
create a file named push with this script
#!/bin/bash
git add .
git commit -m "${*:1}"
git push
@alx_africa @julienbarbier42
๐งต
make it executableโฆ
each time you run
./push my recent update
(โmy recent updateโ will be your commit message)
Keep on #DoingHardThings
each time you run
./push my recent update
(โmy recent updateโ will be your commit message)
Keep on #DoingHardThings
Update
1. So you won't need to create the file everytime even when you create a new directory
2. Faster
Move to /bin
mv filename /bin
to call the execution script, just type
filename
e.g a
call the git push command
filename commit message
e.g push this is my latest commit
1. So you won't need to create the file everytime even when you create a new directory
2. Faster
Move to /bin
mv filename /bin
to call the execution script, just type
filename
e.g a
call the git push command
filename commit message
e.g push this is my latest commit
Loading suggestions...