public static boolean gitGlobalConfig(final AtomicReference<String> path){
  final String GlobalConfigFileName=".gitconfig";
  path.set(null);
  String globalPath=Path.combine(Environment.getFolderPath(Environment.SpecialFolder.UserProfile),GlobalConfigFileName);
  if (Path.fileExists(globalPath)) {
    path.set(globalPath);
  }
  return path.get() != null;
}

public static boolean gitGlobalConfig ( final AtomicReference < String > path ) { final String GlobalConfigFileName = ".gitconfig" ; path . set ( null ) ; String globalPath = Path . combine ( Environment . getFolderPath ( Environment . SpecialFolder . UserProfile ) , GlobalConfigFileName ) ; if ( Path . fileExists ( globalPath ) ) { path . set ( globalPath ) ; } return path . get ( ) != null ; }
gets the path to the git global configuration file .
