NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Ricardus
Joined: 04 May 2010 Posts: 40 Location: Europe
|
Posted: Tue Jan 24, 2012 2:51 pm Post subject: GIT problems with NB 7.1 |
|
|
I would like to use the built-in GIT of NB 7.1 but so far it doesn't work for me.
The nice GIT for NB 7.1 tutorial describes the main steps.
However, when I try to put a locally stored NB project into a new GIT repository (on the same harddrive) just nothing happens after the the initialize phase, which is described here in the mentioned tutorial.
So, whilst I still see the same output of the initialization phase like here in the tutorial, the project just isn't inside any GIT repository. Meaning that my NB 7.1 doesn't show these green "/Added" keywords next to the project's files, like shown here in the tutorial. Let alone the badge icons. The NB project's source file's right click menu entry named "Add" (to a repository) is greyed out, as if my project would not be connected to any GIT repository.
When I examine my GIT repository (".git" folder) it's basically empty: just a few folders and the "config" and "HEAD" file, but nothing else.
The "config" files contains :
| Code: | [core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
autocrlf = false
|
And the "HEAD" files contains :
| Code: |
ref: refs/heads/master
|
What am I missing? How could I see some messages/logs which show what's going on or what's not going on? There's no error message.
I've tested this with NB 7.1 under JDK 1.6 (Linux) and JDK 1.7 (Windows) with the same results: not working for me.
Any help much appreciated. Thanks.
-Richard |
|
| Back to top |
|
 |
Ricardus
Joined: 04 May 2010 Posts: 40 Location: Europe
|
Posted: Wed Jan 25, 2012 9:55 am Post subject: |
|
|
Do those of you who successfully use GIT within their NB 7.1 have installed some additional plugins which I miss?
For example I'm using the Netbeans 7.1. download "Java SE" in an localized version.
The official GIT plugin is already installed in NB (but to be sure I first un-installed and then re-installed it, with no different result).
GIT is "there" in my NB, I can inizialize a repository but then I cannot connect a NB project or file into it. But it looks like the GIT repository wouldn't be there...
Since NB isn't showing any errors, I've absolutely no idea what's going on. |
|
| Back to top |
|
 |
Ricardus
Joined: 04 May 2010 Posts: 40 Location: Europe
|
Posted: Wed Jan 25, 2012 11:30 am Post subject: |
|
|
Problem solved!
It's not a missing plugin problem. I selected the wrong folders (empty ones) when I had to choose GIT's "initialize repository folder"...
That's why there's no errors, because version controlling an empty folder doesn't cause any.
Thank your for your time and patience. |
|
| Back to top |
|
 |
fede
Joined: 13 Jul 2012 Posts: 1
|
Posted: Fri Jul 13, 2012 3:36 pm Post subject: GIT problem |
|
|
Hi,
I am having the same exact problem.
I followed the Git tutorial (http://netbeans.org/kb/docs/ide/git.html) however it does not seem to work.
As Ricardus pointed out I get an empty folder and no status labels or blues/red badges , plus the add label in the contextual menu when I right click on a file is greyed out.
What am I doing wrong?
Ricardus: you said that you selected the wrong folders but I initialize GIT by right clicking on the project name as the tutorial illustrates..
Any help would be great!
Thanks.
Fede |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|