Ogboye Samuel
Ogboye Samuel

@Samuel_Ogboye

3 Tweets 5 reads Jun 10, 2023
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
๐Ÿงต
make it executableโ€ฆ
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

Loading suggestions...