git pull
git add *.java
git commit -am "fixed the bug"
git push origin masterGit documentation good and not too hard to follow.
I use the free Netbeans IDE for programming and the latest versions have good integration with GIT.
This is an example of my .gitignore file.
# a comment - this is ignored *.dat # data files *.txt # text and data files *.eps # figure output *.bmp # figure output *.jpg # figure output OLD/ # OLD directiories ignored # Compiled source # ################### *.com *.class *.dll *.exe *.o *.so *.a # no .a files # Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip # NetBeans Files # ################## nbproject/ build.xml package-info.java # Logs and databases # ###################### *.log *.sql *.sqlite # OS generated files # ###################### .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes Icon? ehthumbs.db Thumbs.db # Backup files # ################ *.bak *.old *.xxx old\ /networks/build/ /networks/dist/