public void transferHeadFiles(BufferedReader consoleInput) throws IOException {
		directory.setWorkingDir(ProjectDirectory);
		if (HEAD != null) {
			for(int i=0; i<HEAD.files.size(); i++) {
				String headpath = HeadFilesDirectory + File.separator + HEAD.files.get(i);
				String projectpath = ProjectDirectory + File.separator + HEAD.files.get(i);
				File headfile = new File(headpath);
				File projectfile = new File(projectpath);

				if (projectfile.isFile()) {
					SHA1 headfileHash = new SHA1(Utilities.FileToByteArray(headfile));
					SHA1 projectfileHash = new SHA1(Utilities.FileToByteArray(projectfile));
					if (!headfileHash.getSHA1().equals(projectfileHash.getSHA1())) {
						boolean validAnswer = false;
						System.out.println("#Conflict: \"" + projectfile.getName() + "\" exists already in your project and isn't equal as the file on the server. \n Do you want to override the file with the file from the server or keep the file unmodified? \n Write \"o\" to override or \"u\" to keep the file unmodified");
						while (!validAnswer) {
							System.out.print("> ");
							String answer = consoleInput.readLine();
							if (answer.equals("o")) {
								validAnswer = true;
								directory.putFile(headpath);  	
							} else if (answer.equals("u")) {
								validAnswer = true;
							} else {
								System.out.println(" Please give a valid answer");
							}
						}
					} 
				} else {
					directory.putFile(headpath);  
				}
			}
		}
	}