Concatenating Git Commands

BRIEF INTRODUCTION ON GIT

Git is an open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency. It's designed for coordinating work amongst developers, designers and writers, but it's also efficient in tracking changes in any set of files. And this set of files are usually hosted on Version Control Platforms such as Github, Bitbucket, etc.

You can download and install Git on your system through this link.

Amongst the several ways of interacting with Version Control Platforms such as Github is using the Terminal by writing Git commands. Git commands are brief texts or statements telling the System ie. Git what to do. Example of these commands is;

git status

which is used to check the status of the file you're working on.

COMMAND CONCATENATING

You can concatenate two or more git commands by using two ampersand symbols (&&).

This will check the status of the files that changed and add the changes in the working directory to the staging area

$ git status && git add .

This will commit the changes and the implement the push commands afterwards.

$ git commit -m "Your commit message" && sudo git push

CONCLUSION

I've been using this for a while and it's been helpful so far. I hope you find it worth trying.

Thanks for reading. If you find this article helpful, kindly drop comments, reactions and yes, you can share on twitter...