I have repeatedly found myself searching for how to commit changes to an existing repository at github. Despite a huge number of tutorials, articles and other git-related resources it took me a good while to get to the information I needed. Forgetful as I am, I was thinking that posting about it could save me a bit of time. Here is what needs to be done.

cd [your project directory]
git status
git add <any new files>
git commit -a -m "Your comment goes here"
git push origin master

Running git status gives a brief summary on what changes have been made (modified / deleted / non-versioned). Remember, it is the push command which does the job of promoting your changes to the repository. Indeed, to complete the operation the github credentials need to be provided. As a result, you should be able to see the committed changes in your github repository.


Tomas Zezula

Hello! I'm a technology enthusiast with a knack for solving problems and a passion for making complex concepts accessible. My journey spans across software development, project management, and technical writing. I specialise in transforming rough sketches of ideas to fully launched products, all the while breaking down complex processes into understandable language. I believe a well-designed software development process is key to driving business growth. My focus as a leader and technical writer aims to bridge the tech-business divide, ensuring that intricate concepts are available and understandable to all. As a consultant, I'm eager to bring my versatile skills and extensive experience to help businesses navigate their software integration needs. Whether you're seeking bespoke software solutions, well-coordinated product launches, or easily digestible tech content, I'm here to make it happen. Ready to turn your vision into reality? Let's connect and explore the possibilities together.