Skip to content

This repository will hold the codes for the members of Buea Java User Group studying Java, especially those using Java How to Program by deitel

Notifications You must be signed in to change notification settings

pacicap/JUG_Meetup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

JUG_Meetup

This repository will hold the code submitted by all those studying Java using Java How to Program by deitel

Getting Started

In order to begin working with this repository, you need to have the following

  • JDK installed and running

  • Git Installed If you are using a linux based operating system(recommended), use

    sudo apt-get install git
    
  • A Github account

  • Java How to Program, 10th Edition.pdf

Working with this repository

Beginning Work

The repository contains folders labeled with the name of each contributor The folders are going to contain the code of the completed tasks for each user at the end of each week Each contributor will create a sub folders labeled week1, week2... and store the conresponding tasks for each week. In order to achieve this:

  • First fork the JUG_Meetup repository from lehone-hp. You may use the tutorial http://help.github.com/fork-a-repo

  • Clone the project repository from your fork so that you can start working on it. Fire up Terminal, move to the directory where you want the projrct to be stored and enter the command:

    git	clone	https://github.com/{yourusername}/JUG_Meetup.git
    
  • Now, go into the folder just created and set up the "upstream" remote so you can eventually pull changes from the main repository.

    git	remote	add	upstream	https://github.com/lehone-hp/JUG_Meetup.git
    

Use git to manage your work

  • In order to contribute, we are each going to be using a separate branch. Everyone is going to have a separate branch which is named after them. So fire up your terminal, go into the root directory of project and enter the command:

    git checkout -b {yourname} master
    

    e.g git checkout -b lehone master

  • Push the branch to your fork

    git	push	-u	origin	{branchname}
    

    Now you may start working on your task in the newly created branch

  • To identify which files you have changed

    git status
    

Stage and Commit your changes

  • As you work on your code, you may want to periodically stage and commit your changes into your branch. To stage all changed and new files into your commit, use the command:

    git	add	-A
    

    Now these files are staged, and ready to be committed.

  • To commit your code into your branch, let's say for week 1, use the command:

    git	commit  -m  "Week 1:	add a short description"
    

Pushing your code and creating a pull request

After multiple iterations of making changes to your code and committing them into your branch, push your code into your fork by running the following commands.

  • Update your branch to the latest code using the following command:

    git	pull	--rebase	upstream	master
    
  • Push your changes into your fork

    git push
    

    Running this command will prompt you to authenticate into GitHub. After doing so, it will upload the changes into your fork. You may now visit your push on GitHub at a URL like

      http://github.com/{yourgithubname}/JUG_Meetup/
    
  • Now create a pull request using the create pull request link on Github so that your code can be merged with the main repository; lehone-hp/JUG_Meetup

About

This repository will hold the codes for the members of Buea Java User Group studying Java, especially those using Java How to Program by deitel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%