Running on Java 17+35-2724 (Preview)
Home of The JavaSpecialists' Newsletter

2.27 Commit and Push

Juppies 2 by Dr Heinz M. Kabutz

The process that we use is that whenever we make a chance, we commit it to our local repository. Change, commit, change, commit, change, commit, etc. Before we push anything into our remote repository, we have to make sure that it works. In addition, if we are working in a team, there are usually some additional procedures in place so that we don't overwrite each other's work. Some teams like the OpenJDK have bots that will do a lot of the project management to integrate the changes into the codebase.

Most likely before we push, we first need to pull changes that others have made in the remote repository and make sure that all of our code still works correctly. Once we have verified that then we can push our code. Usually companies have their own procedures for how they want us to work with the source control.

Since we are working by ourselves in our own repository, we can simply push our branch into the remote repository. All the commits we did today have now been pushed onto the server. Please have a look at your Git repository on GitHub.com and verify that your changes have indeed been pushed. You should also be able to view the history of your work there.

Comments

When you load these comments, you'll be connected to Disqus. Privacy Statement.

Table of Contents

We hope you enjoyed this tutorial. If you did, you will also enjoy our courses. We suggest you start with Extreme Java - Advanced Java, followed by Extreme Java - Concurrency Performance for Java 8.



About the Author

Heinz Kabutz Java Conference Speaker

Java Champion, author of the Javaspecialists Newsletter, conference speaking regular... About Heinz

Superpack 21

Superpack 21 Our entire Java Specialists Training in one huge bundle more...

Free Java Course

Free Juppies 2 Course
Juppies 2 - a course for complete beginners more...

Free Java Book

Dynamic Proxies in Java Book
Java Training

We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.

Java Consulting

We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...

Java Emergency?

If your system is down, we will review it for 15 minutes and give you our findings for just 1 € without any obligation.