DEV Community

Cover image for From "add" to "push" to GitHub in a Single Line
Daniel Nogueira
Daniel Nogueira

Posted on

From "add" to "push" to GitHub in a Single Line

I adopted the multiple commands on a single line to push to GitHub. Instead of running:

git add .
git commit -m 'Update file'
git push
Enter fullscreen mode Exit fullscreen mode

I simply run:

git add .; git commit -m 'Update file'; git push
Enter fullscreen mode Exit fullscreen mode

Believe me, the use of semicolons to execute multiple commands can make a difference when we want agility in the moments of development.

But of course, each case is different. There will be times when a specific commit, with a specific message, will be needed.

Top comments (0)